mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-31 01:11:06 +00:00
Merge pull request #1309 from dlrobertson/master
Update tests after nightly fix
This commit is contained in:
commit
1116af4450
@ -20,9 +20,7 @@ struct Foo<T>(T);
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
static mut FOO: u32;
|
static mut FOO: u32;
|
||||||
|
|
||||||
// FIXME(rust-lang/rust#58853) recent regression needs fixing before
|
pub fn foo3(x: i32, ...);
|
||||||
// re-enabling.
|
|
||||||
// pub fn foo3(x: i32, ...);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[wasm_bindgen]
|
#[wasm_bindgen]
|
||||||
|
@ -28,35 +28,41 @@ error: cannot import mutable globals yet
|
|||||||
21 | static mut FOO: u32;
|
21 | static mut FOO: u32;
|
||||||
| ^^^
|
| ^^^
|
||||||
|
|
||||||
error: only foreign mods with the `C` ABI are allowed
|
error: can't #[wasm_bindgen] variadic functions
|
||||||
--> $DIR/invalid-items.rs:29:8
|
--> $DIR/invalid-items.rs:23:25
|
||||||
|
|
|
|
||||||
29 | extern "system" {
|
23 | pub fn foo3(x: i32, ...);
|
||||||
|
| ^^^
|
||||||
|
|
||||||
|
error: only foreign mods with the `C` ABI are allowed
|
||||||
|
--> $DIR/invalid-items.rs:27:8
|
||||||
|
|
|
||||||
|
27 | extern "system" {
|
||||||
| ^^^^^^^^
|
| ^^^^^^^^
|
||||||
|
|
||||||
|
error: can't #[wasm_bindgen] functions with lifetime or type parameters
|
||||||
|
--> $DIR/invalid-items.rs:31:12
|
||||||
|
|
|
||||||
|
31 | pub fn foo4<T>() {}
|
||||||
|
| ^^^
|
||||||
|
|
||||||
error: can't #[wasm_bindgen] functions with lifetime or type parameters
|
error: can't #[wasm_bindgen] functions with lifetime or type parameters
|
||||||
--> $DIR/invalid-items.rs:33:12
|
--> $DIR/invalid-items.rs:33:12
|
||||||
|
|
|
|
||||||
33 | pub fn foo4<T>() {}
|
33 | pub fn foo5<'a>() {}
|
||||||
| ^^^
|
| ^^^^
|
||||||
|
|
||||||
error: can't #[wasm_bindgen] functions with lifetime or type parameters
|
error: can't #[wasm_bindgen] functions with lifetime or type parameters
|
||||||
--> $DIR/invalid-items.rs:35:12
|
--> $DIR/invalid-items.rs:35:12
|
||||||
|
|
|
|
||||||
35 | pub fn foo5<'a>() {}
|
35 | pub fn foo6<'a, T>() {}
|
||||||
| ^^^^
|
|
||||||
|
|
||||||
error: can't #[wasm_bindgen] functions with lifetime or type parameters
|
|
||||||
--> $DIR/invalid-items.rs:37:12
|
|
||||||
|
|
|
||||||
37 | pub fn foo6<'a, T>() {}
|
|
||||||
| ^^^^^^^
|
| ^^^^^^^
|
||||||
|
|
||||||
error: #[wasm_bindgen] can only be applied to a function, struct, enum, impl, or extern block
|
error: #[wasm_bindgen] can only be applied to a function, struct, enum, impl, or extern block
|
||||||
--> $DIR/invalid-items.rs:40:1
|
--> $DIR/invalid-items.rs:38:1
|
||||||
|
|
|
|
||||||
40 | trait X {}
|
38 | trait X {}
|
||||||
| ^^^^^^^^^^
|
| ^^^^^^^^^^
|
||||||
|
|
||||||
error: aborting due to 10 previous errors
|
error: aborting due to 11 previous errors
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user