]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mismatched_types/trait-bounds-cant-coerce.stderr
Merge commit 'bf1c6f9871f430e284b17aa44059e0d0395e28a6' into clippyup
[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`.