We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8977eeb commit 4d33d72Copy full SHA for 4d33d72
test-project/tests/compile-fail/trait-bounds-cant-coerce.rs
@@ -22,9 +22,9 @@ fn c(x: Box<dyn Foo+Sync+Send>) {
22
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 struct `std::boxed::Box<(dyn Foo + std::marker::Send + 'static)>`
27
- //~| found struct `std::boxed::Box<(dyn Foo + 'static)>`
+ //~| expected trait `Foo + Send`, found trait `Foo`
+ //~| expected struct `Box<(dyn Foo + Send + 'static)>`
+ //~| found struct `Box<(dyn Foo + 'static)>`
28
}
29
30
fn main() { }
0 commit comments