@@ -28,35 +28,41 @@ error: cannot import mutable globals yet
28
28
21 | static mut FOO: u32;
29
29
| ^^^
30
30
31
+ error: can't #[wasm_bindgen] variadic functions
32
+ --> $DIR/invalid-items.rs:23:25
33
+ |
34
+ 23 | pub fn foo3(x: i32, ...);
35
+ | ^^^
36
+
31
37
error: only foreign mods with the `C` ABI are allowed
32
- --> $DIR/invalid-items.rs:29 :8
38
+ --> $DIR/invalid-items.rs:27 :8
33
39
|
34
- 29 | extern "system" {
40
+ 27 | extern "system" {
35
41
| ^^^^^^^^
36
42
37
43
error: can't #[wasm_bindgen] functions with lifetime or type parameters
38
- --> $DIR/invalid-items.rs:33 :12
44
+ --> $DIR/invalid-items.rs:31 :12
39
45
|
40
- 33 | pub fn foo4<T>() {}
46
+ 31 | pub fn foo4<T>() {}
41
47
| ^^^
42
48
43
49
error: can't #[wasm_bindgen] functions with lifetime or type parameters
44
- --> $DIR/invalid-items.rs:35 :12
50
+ --> $DIR/invalid-items.rs:33 :12
45
51
|
46
- 35 | pub fn foo5<'a>() {}
52
+ 33 | pub fn foo5<'a>() {}
47
53
| ^^^^
48
54
49
55
error: can't #[wasm_bindgen] functions with lifetime or type parameters
50
- --> $DIR/invalid-items.rs:37 :12
56
+ --> $DIR/invalid-items.rs:35 :12
51
57
|
52
- 37 | pub fn foo6<'a, T>() {}
58
+ 35 | pub fn foo6<'a, T>() {}
53
59
| ^^^^^^^
54
60
55
61
error: #[wasm_bindgen] can only be applied to a function, struct, enum, impl, or extern block
56
- --> $DIR/invalid-items.rs:40 :1
62
+ --> $DIR/invalid-items.rs:38 :1
57
63
|
58
- 40 | trait X {}
64
+ 38 | trait X {}
59
65
| ^^^^^^^^^^
60
66
61
- error: aborting due to 10 previous errors
67
+ error: aborting due to 11 previous errors
62
68
0 commit comments