]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/rfc-2627-raw-dylib/link-ordinal-not-foreign-fn.rs
1 #![cfg_attr(target_arch = "x86", feature(raw_dylib))]
4 //~^ ERROR attribute should be applied to a foreign function or static
8 //~^ ERROR attribute should be applied to a foreign function or static
12 //~^ ERROR attribute should be applied to a foreign function or static
13 static mut imported_val
: i32 = 123;
15 #[link(name = "exporter", kind = "raw-dylib")]
18 fn imported_function();
21 static mut imported_variable
: i32;