]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/issue-89686.stderr
Rollup merge of #105795 - nicholasbishop:bishop-stabilize-efiapi, r=joshtriplett
[rust.git] / tests / ui / type-alias-impl-trait / issue-89686.stderr
1 error[E0277]: the trait bound `T: Trait` is not satisfied
2   --> $DIR/issue-89686.rs:18:9
3    |
4 LL |         async move { self.f().await }
5    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Trait` is not implemented for `T`
6    |
7 help: consider restricting type parameter `T`
8    |
9 LL | type G<'a, T: Trait> = impl Future<Output = ()> + 'a;
10    |             +++++++
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0277`.