mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 21:47:15 +03:00
860813dd9d
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.
8 lines
182 B
Rust
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);
|