]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/type-test-universe.stderr
Merge commit 'c19edfd71a1d0ddef86c2c67fdb40718d40a72b4' into sync_cg_clif-2022-07-25
[rust.git] / src / test / ui / nll / type-test-universe.stderr
1 error: `S` does not live long enough
2   --> $DIR/type-test-universe.rs:11:5
3    |
4 LL |     outlives_forall::<S>();
5    |     ^^^^^^^^^^^^^^^^^^^^^^
6
7 error: lifetime may not live long enough
8   --> $DIR/type-test-universe.rs:17:5
9    |
10 LL | fn test2<'a>() {
11    |          -- lifetime `'a` defined here
12 LL |     outlives_forall::<Value<'a>>();
13    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'a` must outlive `'static`
14
15 error: aborting due to 2 previous errors
16