5 #[link(name = "foo", import_name_type = "decorated")]
6 //~^ ERROR import name type can only be used with link kind `raw-dylib`
9 #[link(name = "bar", kind = "static", import_name_type = "decorated")]
10 //~^ ERROR import name type can only be used with link kind `raw-dylib`
13 // Specifying `import_name_type` before `kind` shouldn't raise an error.
14 #[link(name = "bar", import_name_type = "decorated", kind = "raw-dylib")]