]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/wasm-import-module.rs
Move parse-fail tests to UI
[rust.git] / src / test / ui / wasm-import-module.rs
index 0b743d9e486b6aa79eb89b0eba01ea8764405d8e..62b2d587c7eafac28bd763ab479a61acbaa055e1 100644 (file)
@@ -8,13 +8,14 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(wasm_import_module)]
+#[link(name = "...", wasm_import_module)] //~ ERROR: must be of the form
+extern {}
 
-#[wasm_import_module] //~ ERROR: must be of the form
+#[link(name = "...", wasm_import_module(x))] //~ ERROR: must be of the form
 extern {}
 
-#[wasm_import_module = "foo"] //~ ERROR: must only be attached to
-fn foo() {}
+#[link(name = "...", wasm_import_module())] //~ ERROR: must be of the form
+extern {}
 
 fn main() {}