]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mismatched_types/trait-bounds-cant-coerce.stderr
Rollup merge of #89945 - JohnTitor:we-now-specialize-clone-from-slice, r=the8472
[rust.git] / src / test / 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    = note: expected struct `Box<(dyn Foo + Send + 'static)>`
8               found struct `Box<(dyn Foo + 'static)>`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0308`.