1 error[E0308]: mismatched types
2 --> $DIR/trait-bounds-cant-coerce.rs:13:7
5 | - ^ expected trait `Foo + Send`, found trait `Foo`
7 | arguments to this function are incorrect
9 = note: expected struct `Box<(dyn Foo + Send + 'static)>`
10 found struct `Box<(dyn Foo + 'static)>`
11 note: function defined here
12 --> $DIR/trait-bounds-cant-coerce.rs:5:4
14 LL | fn a(_x: Box<dyn Foo + Send>) {
15 | ^ -----------------------
17 error: aborting due to previous error
19 For more information about this error, try `rustc --explain E0308`.