From dd93d83db2fb3689f49e463b5563eb474be7710a Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 5 Jun 2020 07:25:04 -0700 Subject: [PATCH] Update UI tests for latest stable --- crates/macro/ui-tests/pub-not-copy.stderr | 4 +--- crates/macro/ui-tests/start-function.stderr | 22 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/crates/macro/ui-tests/pub-not-copy.stderr b/crates/macro/ui-tests/pub-not-copy.stderr index ff985b19..37ac66bb 100644 --- a/crates/macro/ui-tests/pub-not-copy.stderr +++ b/crates/macro/ui-tests/pub-not-copy.stderr @@ -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` diff --git a/crates/macro/ui-tests/start-function.stderr b/crates/macro/ui-tests/start-function.stderr index 870c7819..8194b4f9 100644 --- a/crates/macro/ui-tests/start-function.stderr +++ b/crates/macro/ui-tests/start-function.stderr @@ -10,6 +10,28 @@ error: the start function cannot have generics 10 | pub fn foo3() {} | ^^^ +error[E0277]: the trait bound `std::result::Result: 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` + | + = help: the following implementations were found: + 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::__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` + | + = help: the following implementations were found: + 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::__rt::Start` is not satisfied --> $DIR/start-function.rs:27:1 |