mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 14:31:55 +00:00
16 lines
378 B
Rust
16 lines
378 B
Rust
#![cfg_attr(target_arch = "x86", feature(raw_dylib))]
|
|
|
|
#[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() {}
|