]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-raw-dylib-2.rs
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / feature-gates / feature-gate-raw-dylib-2.rs
1 #[link(name = "foo")]
2 extern "C" {
3     #[link_ordinal(42)]
4     //~^ ERROR: the `#[link_ordinal]` attribute is an experimental feature
5     fn foo();
6     #[link_ordinal(5)]
7     //~^ ERROR: the `#[link_ordinal]` attribute is an experimental feature
8     static mut imported_variable: i32;
9 }
10
11 fn main() {}