Files
rust/tests/ui/eii/dylib_needs_impl.rs
T
bjorn3 860813dd9d Require EIIs to be defined when we compile a rust dylib
The linker will complain about undefined symbols otherwise and on object
file formats with two level namespaces (Mach-O and PE/COFF) it is
required to know which dylib a symbol will be imported from when linking
a dylib or executable.
2026-05-15 15:49:35 +02:00

8 lines
182 B
Rust

//@ no-prefer-dynamic
//@ needs-crate-type: dylib
#![crate_type = "dylib"]
#![feature(extern_item_impls)]
#[eii(eii1)] //~ ERROR `#[eii1]` required, but not found
fn decl1(x: u64);