Debian Codegraph @

.cargo/vendor/wasm-bindgen-macro/ui-tests/invalid-methods.stderr

raw
1 error: #[wasm_bindgen] default impls are not supported
2 --> ui-tests/invalid-methods.rs:7:1
3 |
4 7 | default impl A {
5 | ^^^^^^^
6
7 error: #[wasm_bindgen] unsafe impls are not supported
8 --> ui-tests/invalid-methods.rs:11:1
9 |
10 11 | unsafe impl A {
11 | ^^^^^^
12
13 error: #[wasm_bindgen] trait impls are not supported
14 --> ui-tests/invalid-methods.rs:15:6
15 |
16 15 | impl Clone for A {
17 | ^^^^^
18
19 error: #[wasm_bindgen] generic impls aren't supported
20 --> ui-tests/invalid-methods.rs:19:5
21 |
22 19 | impl<T> A {
23 | ^^^
24
25 error: unsupported self type in #[wasm_bindgen] impl
26 --> ui-tests/invalid-methods.rs:23:6
27 |
28 23 | impl &'static A {
29 | ^^^^^^^^^^
30
31 error: const definitions aren't supported with #[wasm_bindgen]
32 --> ui-tests/invalid-methods.rs:30:5
33 |
34 30 | const X: u32 = 3;
35 | ^^^^^^^^^^^^^^^^^
36
37 error: type definitions in impls aren't supported with #[wasm_bindgen]
38 --> ui-tests/invalid-methods.rs:31:5
39 |
40 31 | type Y = u32;
41 | ^^^^^^^^^^^^^
42
43 error: macros in impls aren't supported
44 --> ui-tests/invalid-methods.rs:32:5
45 |
46 32 | x!();
47 | ^^^^^
48
49 error: can only #[wasm_bindgen] non-const functions
50 --> ui-tests/invalid-methods.rs:39:9
51 |
52 39 | pub const fn foo() {}
53 | ^^^^^
54
55 warning: unused macro definition: `x`
56 --> ui-tests/invalid-methods.rs:26:14
57 |
58 26 | macro_rules! x { () => () }
59 | ^
60 |
61 = note: `#[warn(unused_macros)]` on by default