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