]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/nested-return-type2-tait3.stderr
Rollup merge of #98441 - calebzulawski:simd_as, r=oli-obk
[rust.git] / src / test / ui / impl-trait / nested-return-type2-tait3.stderr
1 error[E0277]: the trait bound `impl Send: Duh` is not satisfied
2   --> $DIR/nested-return-type2-tait3.rs:26:5
3    |
4 LL |     || 42
5    |     ^^^^^ the trait `Duh` is not implemented for `impl Send`
6    |
7    = help: the trait `Duh` is implemented for `i32`
8 note: required for `[closure@$DIR/nested-return-type2-tait3.rs:26:5: 26:7]` to implement `Trait`
9   --> $DIR/nested-return-type2-tait3.rs:14:31
10    |
11 LL | impl<R: Duh, F: FnMut() -> R> Trait for F {
12    |                               ^^^^^     ^
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0277`.