mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 20:54:13 +00:00
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() {}
|