mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-01 18:01:06 +00:00
Work around rust-lang/rust#58853
This commit is contained in:
parent
5db467fc2d
commit
1031d9dea6
@ -20,7 +20,7 @@ struct Foo<T>(T);
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
static mut FOO: u32;
|
static mut FOO: u32;
|
||||||
|
|
||||||
pub fn foo3(x: i32, ...);
|
// pub fn foo3(x: i32, ...);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[wasm_bindgen]
|
#[wasm_bindgen]
|
||||||
|
@ -28,12 +28,6 @@ error: cannot import mutable globals yet
|
|||||||
21 | static mut FOO: u32;
|
21 | static mut FOO: u32;
|
||||||
| ^^^
|
| ^^^
|
||||||
|
|
||||||
error: can't #[wasm_bindgen] variadic functions
|
|
||||||
--> $DIR/invalid-items.rs:23:25
|
|
||||||
|
|
|
||||||
23 | pub fn foo3(x: i32, ...);
|
|
||||||
| ^^^
|
|
||||||
|
|
||||||
error: only foreign mods with the `C` ABI are allowed
|
error: only foreign mods with the `C` ABI are allowed
|
||||||
--> $DIR/invalid-items.rs:27:8
|
--> $DIR/invalid-items.rs:27:8
|
||||||
|
|
|
|
||||||
@ -64,5 +58,5 @@ error: #[wasm_bindgen] can only be applied to a function, struct, enum, impl, or
|
|||||||
38 | trait X {}
|
38 | trait X {}
|
||||||
| ^^^^^^^^^^
|
| ^^^^^^^^^^
|
||||||
|
|
||||||
error: aborting due to 11 previous errors
|
error: aborting due to 10 previous errors
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user