]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl-trait/nested-return-type2-tait3.stderr
Fix #106496, suggest remove deref for type mismatch
[rust.git] / tests / 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    |         unsatisfied trait bound introduced here
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0277`.