Work around a nightly regression

This commit is contained in:
Alex Crichton 2019-03-01 10:48:03 -08:00
parent 1031d9dea6
commit dad0de4f8b
2 changed files with 15 additions and 13 deletions

View File

@ -20,6 +20,8 @@ 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
// re-enabling.
// pub fn foo3(x: i32, ...); // pub fn foo3(x: i32, ...);
} }

View File

@ -29,33 +29,33 @@ error: cannot import mutable globals yet
| ^^^ | ^^^
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:29:8
| |
27 | extern "system" { 29 | 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 foo5<'a>() {} 33 | 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:35:12 --> $DIR/invalid-items.rs:35:12
| |
35 | pub fn foo6<'a, T>() {} 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>() {}
| ^^^^^^^ | ^^^^^^^
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:38:1 --> $DIR/invalid-items.rs:40:1
| |
38 | trait X {} 40 | trait X {}
| ^^^^^^^^^^ | ^^^^^^^^^^
error: aborting due to 10 previous errors error: aborting due to 10 previous errors