]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-raw-dylib-2.rs
Rollup merge of #102445 - jmillikin:cstr-is-empty, r=Mark-Simulacrum
[rust.git] / src / test / 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() {}