1 error: can only #[wasm_bindgen] public functions
2 --> $DIR/invalid-items.rs:4:1
7 error: can only #[wasm_bindgen] non-const functions
8 --> $DIR/invalid-items.rs:7:5
10 7 | pub const fn foo2() {}
13 error: structs with #[wasm_bindgen] cannot have lifetime or type parameters currently
14 --> $DIR/invalid-items.rs:10:11
16 10 | struct Foo<T>(T);
19 error: cannot import mutable globals yet
20 --> $DIR/invalid-items.rs:14:12
22 14 | static mut FOO: u32;
25 error: can't #[wasm_bindgen] variadic functions
26 --> $DIR/invalid-items.rs:16:25
28 16 | pub fn foo3(x: i32, ...);
31 error: only foreign mods with the `C` ABI are allowed
32 --> $DIR/invalid-items.rs:20:8
34 20 | extern "system" {
37 error: can't #[wasm_bindgen] functions with lifetime or type parameters
38 --> $DIR/invalid-items.rs:24:12
40 24 | pub fn foo4<T>() {}
43 error: can't #[wasm_bindgen] functions with lifetime or type parameters
44 --> $DIR/invalid-items.rs:26:12
46 26 | pub fn foo5<'a>() {}
49 error: can't #[wasm_bindgen] functions with lifetime or type parameters
50 --> $DIR/invalid-items.rs:28:12
52 28 | pub fn foo6<'a, T>() {}
55 error: #[wasm_bindgen] can only be applied to a function, struct, enum, impl, or extern block
56 --> $DIR/invalid-items.rs:31:1