Skip to content

Commit 20b47eb

Browse files
authored
Merge pull request #211 from laumann/fix-failing-test
The error message for trait-bounds-cant-coerce.rs has changed
2 parents 931fe69 + 421d861 commit 20b47eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ fn c(x: Box<dyn Foo+Sync+Send>) {
2323
fn d(x: Box<dyn Foo>) {
2424
a(x); //~ ERROR mismatched types
2525
//~| expected trait `Foo + std::marker::Send`, found trait `Foo`
26-
//~| expected type `std::boxed::Box<(dyn Foo + std::marker::Send + 'static)>`
27-
//~| found type `std::boxed::Box<(dyn Foo + 'static)>`
26+
//~| expected struct `std::boxed::Box<(dyn Foo + std::marker::Send + 'static)>`
27+
//~| found struct `std::boxed::Box<(dyn Foo + 'static)>`
2828
}
2929

3030
fn main() { }

0 commit comments

Comments
 (0)