mirror of https://github.com/rust-lang/rust
14 lines
323 B
Rust
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() {}
|