]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/nested-return-type2-tait.stderr
Auto merge of #95604 - nbdd0121:used2, r=petrochenkov
[rust.git] / src / test / ui / impl-trait / nested-return-type2-tait.stderr
1 error[E0277]: the trait bound `Sendable: Duh` is not satisfied
2   --> $DIR/nested-return-type2-tait.rs:25:13
3    |
4 LL | fn foo() -> impl Trait<Assoc = Sendable> {
5    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Duh` is not implemented for `Sendable`
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-tait.rs:28:5: 28:10]`
9   --> $DIR/nested-return-type2-tait.rs:14:31
10    |
11 LL | impl<R: Duh, F: FnMut() -> R> Trait for F {
12    |                               ^^^^^     ^
13
14 error[E0277]: the trait bound `Sendable: Duh` is not satisfied
15   --> $DIR/nested-return-type2-tait.rs:25:42
16    |
17 LL |   fn foo() -> impl Trait<Assoc = Sendable> {
18    |  __________________________________________^
19 LL | |
20 LL | |
21 LL | |     || 42
22 LL | | }
23    | |_^ the trait `Duh` is not implemented for `Sendable`
24    |
25    = help: the trait `Duh` is implemented for `i32`
26 note: required because of the requirements on the impl of `Trait` for `[closure@$DIR/nested-return-type2-tait.rs:28:5: 28:10]`
27   --> $DIR/nested-return-type2-tait.rs:14:31
28    |
29 LL | impl<R: Duh, F: FnMut() -> R> Trait for F {
30    |                               ^^^^^     ^
31
32 error: aborting due to 2 previous errors
33
34 For more information about this error, try `rustc --explain E0277`.