]> git.proxmox.com Git - rustc.git/blob - src/test/ui/type-alias-impl-trait/issue-89686.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / 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`.