mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-17 06:21:36 +03:00
d4297ad2d3
This has now been stabilized!
27 lines
617 B
Plaintext
27 lines
617 B
Plaintext
error: only public enums are allowed with #[wasm_bindgen]
|
|
--> $DIR/invalid-enums.rs:6:1
|
|
|
|
|
6 | enum A {}
|
|
| ^^^^^^^^^
|
|
|
|
error: only C-Style enums allowed with #[wasm_bindgen]
|
|
--> $DIR/invalid-enums.rs:10:6
|
|
|
|
|
10 | D(u32),
|
|
| ^^^^^
|
|
|
|
error: enums with #[wasm_bidngen] may only have number literal values
|
|
--> $DIR/invalid-enums.rs:15:9
|
|
|
|
|
15 | X = 1 + 3,
|
|
| ^^^^^
|
|
|
|
error: enums with #[wasm_bindgen] can only support numbers that can be represented as u32
|
|
--> $DIR/invalid-enums.rs:20:9
|
|
|
|
|
20 | X = 4294967296,
|
|
| ^^^^^^^^^^
|
|
|
|
error: aborting due to 4 previous errors
|
|
|