]> git.lizzy.rs Git - rust.git/blob - tests/ui/generic-associated-types/collectivity-regression.stderr
internally change regions to be covariant
[rust.git] / tests / ui / generic-associated-types / collectivity-regression.stderr
1 error: `T` does not live long enough
2   --> $DIR/collectivity-regression.rs:13:5
3    |
4 LL | /     || {
5 LL | |
6 LL | |         //
7 LL | |         // FIXME(#98437). This regressed at some point and
8 LL | |         // probably should work.
9 LL | |         let _x = x;
10 LL | |     };
11    | |_____^
12    |
13 note: due to current limitations in the borrow checker, this implies a `'static` lifetime
14   --> $DIR/collectivity-regression.rs:11:16
15    |
16 LL |     for<'a> T: Get<Value<'a> = ()>,
17    |                ^^^^^^^^^^^^^^^^^^^
18 help: consider restricting the type parameter to the `'static` lifetime
19    |
20 LL |     for<'a> T: Get<Value<'a> = ()> + 'static,
21    |                                    +++++++++
22
23 error: aborting due to previous error
24