]> git.lizzy.rs Git - rust.git/blob - tests/ui/generic-associated-types/issue-90014.stderr
Rollup merge of #103702 - WaffleLapkin:lift-sized-bounds-from-pointer-methods-where...
[rust.git] / tests / 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    |                    ^^^^^^^^^^^^^^^^^^^^^^^^
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 help: copy the `where` clause predicates from the trait
16    |
17 LL |     type Fut<'a> = impl Future<Output = ()> where Self: 'a;
18    |                                             ++++++++++++++
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0477`.