]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/nested-return-type2-tait3.stderr
Miscellaneous inlining improvements
[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:25:13
3    |
4 LL | fn foo() -> Traitable {
5    |             ^^^^^^^^^ the trait `Duh` is not implemented for `impl Send`
6    |
7    = help: the trait `Duh` is implemented for `i32`
8 note: required because of the requirements on the impl of `Trait` for `[closure@$DIR/nested-return-type2-tait3.rs:27:5: 27:10]`
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`.