mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-20 12:10:52 +00:00
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
|
|
|