Update UI tests for latest stable

This commit is contained in:
Alex Crichton 2020-06-05 07:25:04 -07:00
parent 3725e7157d
commit dd93d83db2
2 changed files with 23 additions and 3 deletions

View File

@ -2,9 +2,7 @@ error[E0277]: the trait bound `std::string::String: std::marker::Copy` is not sa
--> $DIR/pub-not-copy.rs:5:16
|
3 | #[wasm_bindgen]
| ---------------
| |
| required by this bound in `__wbg_get_a_field::assert_copy`
| --------------- required by this bound in `__wbg_get_a_field::assert_copy`
4 | pub struct A {
5 | pub field: String,
| ^^^^^^ the trait `std::marker::Copy` is not implemented for `std::string::String`

View File

@ -10,6 +10,28 @@ error: the start function cannot have generics
10 | pub fn foo3<T>() {}
| ^^^
error[E0277]: the trait bound `std::result::Result<wasm_bindgen::JsValue, ()>: wasm_bindgen::__rt::Start` is not satisfied
--> $DIR/start-function.rs:15:1
|
15 | #[wasm_bindgen(start)]
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `std::result::Result<wasm_bindgen::JsValue, ()>`
|
= help: the following implementations were found:
<std::result::Result<(), E> as wasm_bindgen::__rt::Start>
= note: required by `wasm_bindgen::__rt::Start::start`
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `std::result::Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>: wasm_bindgen::__rt::Start` is not satisfied
--> $DIR/start-function.rs:18:1
|
18 | #[wasm_bindgen(start)]
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `std::result::Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>`
|
= help: the following implementations were found:
<std::result::Result<(), E> as wasm_bindgen::__rt::Start>
= note: required by `wasm_bindgen::__rt::Start::start`
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `std::result::Result<wasm_bindgen::JsValue, ()>: wasm_bindgen::__rt::Start` is not satisfied
--> $DIR/start-function.rs:27:1
|