]> git.lizzy.rs Git - rust.git/blob - tests/ui/feature-gates/feature-gate-raw-dylib-2.rs
Rollup merge of #106741 - GuillaumeGomez:reexport-doc-hidden, r=notriddle
[rust.git] / tests / ui / feature-gates / feature-gate-raw-dylib-2.rs
1 // only-x86
2 #[link(name = "foo")]
3 extern "C" {
4     #[link_ordinal(42)]
5     //~^ ERROR: `#[link_ordinal]` is unstable on x86
6     fn foo();
7     #[link_ordinal(5)]
8     //~^ ERROR: `#[link_ordinal]` is unstable on x86
9     static mut imported_variable: i32;
10 }
11
12 fn main() {}