]> git.lizzy.rs Git - rust.git/blobdiff - 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
index 518aa20dd68ceefc4ae314f044eac8a496ee9d5f..0594b1384ec2345fb6bd7f95c5e9ac9c02d671c6 100644 (file)
@@ -3,6 +3,9 @@
     #[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;
 }
 
 fn main() {}