]> git.lizzy.rs Git - rust.git/blob - tests/ui/mismatched_types/trait-bounds-cant-coerce.stderr
Rollup merge of #107700 - jyn514:tools-builder, r=Mark-Simulacrum
[rust.git] / tests / ui / mismatched_types / trait-bounds-cant-coerce.stderr
1 error[E0308]: mismatched types
2   --> $DIR/trait-bounds-cant-coerce.rs:13:7
3    |
4 LL |     a(x);
5    |     - ^ expected trait `Foo + Send`, found trait `Foo`
6    |     |
7    |     arguments to this function are incorrect
8    |
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
13    |
14 LL | fn a(_x: Box<dyn Foo + Send>) {
15    |    ^ -----------------------
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0308`.