summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generic-associated-types/issue-90014.stderr
blob: 2d3f4a6af7e0b9a4e02590c7468002a3ebb9c6b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error[E0477]: the type `&mut ()` does not fulfill the required lifetime
  --> $DIR/issue-90014.rs:13:20
   |
LL |     type Fut<'a> where Self: 'a;
   |     ------------ definition of `Fut` from trait
...
LL |     type Fut<'a> = impl Future<Output = ()>;
   |                    ^^^^^^^^^^^^^^^^^^^^^^^^- help: try copying this clause from the trait: `where Self: 'a`
   |
note: type must outlive the lifetime `'a` as defined here
  --> $DIR/issue-90014.rs:13:14
   |
LL |     type Fut<'a> = impl Future<Output = ()>;
   |              ^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0477`.