]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-90014.stderr
Rollup merge of #93613 - crlf0710:rename_to_async_iter, r=yaahc
[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: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    |                 -  ^^^^^^^^^^^^^^^^^^^^^^^^
9    |                 |
10    |                 help: try copying this clause from the trait: `where Self: 'a`
11    |
12 note: type must outlive the lifetime `'a` as defined here
13   --> $DIR/issue-90014.rs:14:14
14    |
15 LL |     type Fut<'a> = impl Future<Output = ()>;
16    |              ^^
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0477`.