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