]> git.proxmox.com Git - rustc.git/blob - src/test/ui/generic-associated-types/issue-90014.stderr
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / generic-associated-types / issue-90014.stderr
1 error[E0477]: the type `&mut ()` does not fulfill the required lifetime
2 --> $DIR/issue-90014.rs:14:20
3 |
4 LL | type Fut<'a> where Self: 'a;
5 | ---------------------------- definition of `Fut` from trait
6 ...
7 LL | type Fut<'a> = impl Future<Output = ()>;
8 | ^^^^^^^^^^^^^^^^^^^^^^^^- help: try copying this clause from the trait: `where Self: 'a`
9 |
10 note: type must outlive the lifetime `'a` as defined here
11 --> $DIR/issue-90014.rs:14:14
12 |
13 LL | type Fut<'a> = impl Future<Output = ()>;
14 | ^^
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0477`.