rust/tests/ui/rfcs/rfc-2627-raw-dylib/link-ordinal-and-name.rs

14 lines
323 B
Rust

#[link(name="foo")]
extern "C" {
#[link_name="foo"]
#[link_ordinal(42)]
//~^ ERROR cannot use `#[link_name]` with `#[link_ordinal]`
fn foo();
#[link_name="foo"]
#[link_ordinal(5)]
//~^ ERROR cannot use `#[link_name]` with `#[link_ordinal]`
static mut imported_variable: i32;
}
fn main() {}