rust/src/test/ui/feature-gates/feature-gate-raw-dylib-2.rs

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

12 lines
301 B
Rust
Raw Normal View History

2020-09-01 16:12:52 -05:00
#[link(name = "foo")]
extern "C" {
2019-09-18 09:40:08 -05:00
#[link_ordinal(42)]
//~^ ERROR: the `#[link_ordinal]` attribute is an experimental feature
fn foo();
#[link_ordinal(5)]
//~^ ERROR: the `#[link_ordinal]` attribute is an experimental feature
static mut imported_variable: i32;
2019-09-18 09:40:08 -05:00
}
fn main() {}