mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-28 07:51:07 +00:00
This migrates our UI tests to the recently published `trybuild` crate which should hopefully be a bit more robust than `compiletest` over time!
24 lines
569 B
Plaintext
24 lines
569 B
Plaintext
error: only public enums are allowed with #[wasm_bindgen]
|
|
--> $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_bidngen] 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,
|
|
| ^^^^^^^^^^
|