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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
323 B
Rust
Raw Normal View History

#[link(name="foo")]
2020-09-01 16:12:52 -05:00
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() {}