This commit is contained in:
Alex Crichton 2019-03-01 10:47:27 -08:00
parent 5db467fc2d
commit 1031d9dea6
2 changed files with 2 additions and 8 deletions

View File

@ -20,7 +20,7 @@ struct Foo<T>(T);
extern "C" {
static mut FOO: u32;
pub fn foo3(x: i32, ...);
// pub fn foo3(x: i32, ...);
}
#[wasm_bindgen]

View File

@ -28,12 +28,6 @@ error: cannot import mutable globals yet
21 | static mut FOO: u32;
| ^^^
error: can't #[wasm_bindgen] variadic functions
--> $DIR/invalid-items.rs:23:25
|
23 | pub fn foo3(x: i32, ...);
| ^^^
error: only foreign mods with the `C` ABI are allowed
--> $DIR/invalid-items.rs:27:8
|
@ -64,5 +58,5 @@ error: #[wasm_bindgen] can only be applied to a function, struct, enum, impl, or
38 | trait X {}
| ^^^^^^^^^^
error: aborting due to 11 previous errors
error: aborting due to 10 previous errors