blob: 5ee8be51dd5c9f89ea987bb01554dc015a06cc17 [file] [log] [blame]
error[E0308]: mismatched types
--> $DIR/trait-bounds-sugar.rs:12:7
|
LL | a(x);
| ^ expected trait `Foo + std::marker::Send`, found trait `Foo + std::marker::Sync`
|
= note: expected struct `std::boxed::Box<(dyn Foo + std::marker::Send + 'static)>`
found struct `std::boxed::Box<(dyn Foo + std::marker::Sync + 'static)>`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.