mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
16 lines
338 B
Rust
16 lines
338 B
Rust
#[link(name = "foo")]
|
|
extern "C" {
|
|
#[link_ordinal(3)]
|
|
//~^ ERROR `#[link_ordinal]` is only supported if link kind is `raw-dylib`
|
|
fn foo();
|
|
}
|
|
|
|
#[link(name = "bar", kind = "static")]
|
|
extern "C" {
|
|
#[link_ordinal(3)]
|
|
//~^ ERROR `#[link_ordinal]` is only supported if link kind is `raw-dylib`
|
|
fn bar();
|
|
}
|
|
|
|
fn main() {}
|