rust/tests/ui/rfc-2627-raw-dylib/link-ordinal-and-name.rs
2023-04-18 11:01:07 -07:00

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() {}