We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 931fe69 + 421d861 commit 20b47ebCopy full SHA for 20b47eb
test-project/tests/compile-fail/trait-bounds-cant-coerce.rs
@@ -23,8 +23,8 @@ fn c(x: Box<dyn Foo+Sync+Send>) {
23
fn d(x: Box<dyn Foo>) {
24
a(x); //~ ERROR mismatched types
25
//~| 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)>`
+ //~| expected struct `std::boxed::Box<(dyn Foo + std::marker::Send + 'static)>`
+ //~| found struct `std::boxed::Box<(dyn Foo + 'static)>`
28
}
29
30
fn main() { }
0 commit comments