error: can only #[wasm_bindgen] public functions
 --> $DIR/invalid-items.rs:4:1
  |
4 | fn foo() {}
  | ^^^^^^^^^^^

error: can only #[wasm_bindgen] non-const functions
 --> $DIR/invalid-items.rs:7:5
  |
7 | pub const fn foo2() {}
  |     ^^^^^

error: structs with #[wasm_bindgen] cannot have lifetime or type parameters currently
  --> $DIR/invalid-items.rs:10:11
   |
10 | struct Foo<T>(T);
   |           ^^^

error: cannot import mutable globals yet
  --> $DIR/invalid-items.rs:15:12
   |
15 |     static mut FOO: u32;
   |            ^^^

error: static strings require a string literal
  --> $DIR/invalid-items.rs:17:20
   |
17 |     #[wasm_bindgen(static_string)]
   |                    ^^^^^^^^^^^^^

error: static strings require a string literal
  --> $DIR/invalid-items.rs:20:37
   |
20 |     #[wasm_bindgen(thread_local_v2, static_string)]
   |                                     ^^^^^^^^^^^^^

error: static strings require `#[wasm_bindgen(static_string)]`
  --> $DIR/invalid-items.rs:23:5
   |
23 |     static FOO4: JsString = "test";
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: static strings require `#[wasm_bindgen(thread_local_v2)]`
  --> $DIR/invalid-items.rs:26:5
   |
26 |     static FOO5: JsString = "test";
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: can't #[wasm_bindgen] variadic functions
  --> $DIR/invalid-items.rs:28:25
   |
28 |     pub fn foo3(x: i32, ...);
   |                         ^^^

error: only foreign mods with the `C` ABI are allowed
  --> $DIR/invalid-items.rs:32:8
   |
32 | extern "system" {}
   |        ^^^^^^^^

error: can't #[wasm_bindgen] functions with lifetime or type parameters
  --> $DIR/invalid-items.rs:35:12
   |
35 | pub fn foo4<T>() {}
   |            ^^^

error: can't #[wasm_bindgen] functions with lifetime or type parameters
  --> $DIR/invalid-items.rs:37:12
   |
37 | pub fn foo5<'a>() {}
   |            ^^^^

error: can't #[wasm_bindgen] functions with lifetime or type parameters
  --> $DIR/invalid-items.rs:39:12
   |
39 | pub fn foo6<'a, T>() {}
   |            ^^^^^^^

error: #[wasm_bindgen] can only be applied to a function, struct, enum, impl, or extern block
  --> $DIR/invalid-items.rs:42:1
   |
42 | trait X {}
   | ^^^^^^^^^^
