Skip to content

Commit 4d33d72

Browse files
committed
Fix updated error messages
This will continue to fail on beta and stable until the error message changes have trickled down.
1 parent 8977eeb commit 4d33d72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test-project/tests/compile-fail/trait-bounds-cant-coerce.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ fn c(x: Box<dyn Foo+Sync+Send>) {
2222

2323
fn d(x: Box<dyn Foo>) {
2424
a(x); //~ ERROR mismatched types
25-
//~| expected trait `Foo + std::marker::Send`, found trait `Foo`
26-
//~| expected struct `std::boxed::Box<(dyn Foo + std::marker::Send + 'static)>`
27-
//~| found struct `std::boxed::Box<(dyn Foo + 'static)>`
25+
//~| expected trait `Foo + Send`, found trait `Foo`
26+
//~| expected struct `Box<(dyn Foo + Send + 'static)>`
27+
//~| found struct `Box<(dyn Foo + 'static)>`
2828
}
2929

3030
fn main() { }

0 commit comments

Comments
 (0)