]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2627-raw-dylib/import-name-type-unsupported-link-kind.rs
Auto merge of #100935 - cuviper:upgrade-android-ci, r=Mark-Simulacrum
[rust.git] / src / test / ui / rfc-2627-raw-dylib / import-name-type-unsupported-link-kind.rs
1 // only-windows
2 // only-x86
3 #![feature(raw_dylib)]
4 //~^ WARN the feature `raw_dylib` is incomplete
5
6 #[link(name = "foo", import_name_type = "decorated")]
7 //~^ ERROR import name type can only be used with link kind `raw-dylib`
8 extern "C" { }
9
10 #[link(name = "bar", kind = "static", import_name_type = "decorated")]
11 //~^ ERROR import name type can only be used with link kind `raw-dylib`
12 extern "C" { }
13
14 // Specifying `import_name_type` before `kind` shouldn't raise an error.
15 #[link(name = "bar", import_name_type = "decorated", kind = "raw-dylib")]
16 extern "C" { }
17
18 fn main() {}