Skip to content

Commit 1031d9d

Browse files
committed
1 parent 5db467f commit 1031d9d

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

crates/macro/ui-tests/invalid-items.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ struct Foo<T>(T);
2020
extern "C" {
2121
static mut FOO: u32;
2222

23-
pub fn foo3(x: i32, ...);
23+
// pub fn foo3(x: i32, ...);
2424
}
2525

2626
#[wasm_bindgen]

crates/macro/ui-tests/invalid-items.stderr

+1-7
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@ error: cannot import mutable globals yet
2828
21 | static mut FOO: u32;
2929
| ^^^
3030

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-
3731
error: only foreign mods with the `C` ABI are allowed
3832
--> $DIR/invalid-items.rs:27:8
3933
|
@@ -64,5 +58,5 @@ error: #[wasm_bindgen] can only be applied to a function, struct, enum, impl, or
6458
38 | trait X {}
6559
| ^^^^^^^^^^
6660

67-
error: aborting due to 11 previous errors
61+
error: aborting due to 10 previous errors
6862

0 commit comments

Comments
 (0)