]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2627-raw-dylib/link-ordinal-multiple.rs
Rollup merge of #105983 - compiler-errors:issue-105981, r=tmiasko
[rust.git] / src / test / ui / rfc-2627-raw-dylib / link-ordinal-multiple.rs
1 // only-windows
2 #![cfg_attr(target_arch = "x86", feature(raw_dylib))]
3
4 #[link(name = "foo", kind = "raw-dylib")]
5 extern "C" {
6     #[link_ordinal(1)] //~ ERROR multiple `link_ordinal` attributes
7     #[link_ordinal(2)]
8     fn foo();
9     #[link_ordinal(1)] //~ ERROR multiple `link_ordinal` attributes
10     #[link_ordinal(2)]
11     static mut imported_variable: i32;
12 }
13
14 fn main() {}