From 7fd6702c6dcfe01d38e0240157e57e0ed6f654d5 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 5 Sep 2019 09:52:14 -0700 Subject: [PATCH] Update assertion of stderr on nightly rustc's error messages changed! --- crates/macro/ui-tests/pub-not-copy.stderr | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/crates/macro/ui-tests/pub-not-copy.stderr b/crates/macro/ui-tests/pub-not-copy.stderr index 632b1e21..bec51118 100644 --- a/crates/macro/ui-tests/pub-not-copy.stderr +++ b/crates/macro/ui-tests/pub-not-copy.stderr @@ -1,13 +1,10 @@ error[E0277]: the trait bound `std::string::String: std::marker::Copy` is not satisfied --> $DIR/pub-not-copy.rs:5:16 | +3 | #[wasm_bindgen] + | --------------- required by `__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` - | -note: required by `__wbg_get_a_field::assert_copy` - --> $DIR/pub-not-copy.rs:3:1 - | -3 | #[wasm_bindgen] - | ^^^^^^^^^^^^^^^ For more information about this error, try `rustc --explain E0277`.