Update tests after nightly fix

This commit is contained in:
Dan Robertson 2019-03-04 02:14:57 +00:00
parent ba84db5007
commit 7ad5426714
No known key found for this signature in database
GPG Key ID: 45C4A652C47E42A5
2 changed files with 22 additions and 18 deletions

View File

@ -20,9 +20,7 @@ struct Foo<T>(T);
extern "C" {
static mut FOO: u32;
// FIXME(rust-lang/rust#58853) recent regression needs fixing before
// re-enabling.
// pub fn foo3(x: i32, ...);
pub fn foo3(x: i32, ...);
}
#[wasm_bindgen]

View File

@ -28,35 +28,41 @@ error: cannot import mutable globals yet
21 | static mut FOO: u32;
| ^^^
error: only foreign mods with the `C` ABI are allowed
--> $DIR/invalid-items.rs:29:8
error: can't #[wasm_bindgen] variadic functions
--> $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
--> $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
--> $DIR/invalid-items.rs:35:12
|
35 | pub fn foo5<'a>() {}
| ^^^^
error: can't #[wasm_bindgen] functions with lifetime or type parameters
--> $DIR/invalid-items.rs:37:12
|
37 | pub fn foo6<'a, T>() {}
35 | pub fn foo6<'a, T>() {}
| ^^^^^^^
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