summaryrefslogtreecommitdiffstats
path: root/vendor/wasm-bindgen-macro/ui-tests/invalid-enums.stderr
blob: 7ad51f9a5a234a361d86351c5624386f0d44263f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
error: cannot export empty enums to JS
 --> $DIR/invalid-enums.rs:4:1
  |
4 | enum A {}
  | ^^^^^^^^^

error: only C-Style enums allowed with #[wasm_bindgen]
 --> $DIR/invalid-enums.rs:8:6
  |
8 |     D(u32),
  |      ^^^^^

error: enums with #[wasm_bindgen] may only have number literal values
  --> $DIR/invalid-enums.rs:13:9
   |
13 |     X = 1 + 3,
   |         ^^^^^

error: enums with #[wasm_bindgen] can only support numbers that can be represented as u32
  --> $DIR/invalid-enums.rs:18:9
   |
18 |     X = 4294967296,
   |         ^^^^^^^^^^