]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-90014.stderr
Auto merge of #101629 - compiler-errors:issue-101623, r=sanxiyn
[rust.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:13: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:13: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`.