rust/tests/ui/rfcs/rfc-2627-raw-dylib/link-ordinal-too-many-arguments.rs

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

12 lines
288 B
Rust
Raw Normal View History

#[link(name = "foo")]
extern "C" {
#[link_ordinal(3, 4)]
//~^ ERROR incorrect number of arguments to `#[link_ordinal]`
fn foo();
#[link_ordinal(3, 4)]
//~^ ERROR incorrect number of arguments to `#[link_ordinal]`
static mut imported_variable: i32;
}
fn main() {}