]>
Commit | Line | Data |
---|---|---|
3c0e092e | 1 | error[E0277]: the trait bound `T: Trait` is not satisfied |
04454e1e | 2 | --> $DIR/issue-89686.rs:18:9 |
3c0e092e | 3 | | |
04454e1e FG |
4 | LL | async move { self.f().await } |
5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Trait` is not implemented for `T` | |
3c0e092e XL |
6 | | |
7 | help: consider restricting type parameter `T` | |
8 | | | |
2b03887a | 9 | LL | type G<'a, T: Trait> = impl Future<Output = ()> + 'a; |
3c0e092e XL |
10 | | +++++++ |
11 | ||
5e7ed085 | 12 | error: aborting due to previous error |
3c0e092e | 13 | |
5e7ed085 | 14 | For more information about this error, try `rustc --explain E0277`. |