Skip to content

Commit 3ca5f4c

Browse files
authored
Merge pull request #224 from laumann/fix-error-message
Fix updated error messages
2 parents 8977eeb + 4d33d72 commit 3ca5f4c

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)