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