]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/local-outlives-static-via-hrtb.stderr
Rollup merge of #83807 - sjakobi:77548-remove-ignore-annotations, r=Mark-Simulacrum
[rust.git] / src / test / ui / nll / local-outlives-static-via-hrtb.stderr
1 error[E0597]: `local` does not live long enough
2   --> $DIR/local-outlives-static-via-hrtb.rs:24:28
3    |
4 LL |     assert_static_via_hrtb(&local);
5    |     -----------------------^^^^^^-
6    |     |                      |
7    |     |                      borrowed value does not live long enough
8    |     argument requires that `local` is borrowed for `'static`
9 LL |     assert_static_via_hrtb_with_assoc_type(&&local);
10 LL | }
11    | - `local` dropped here while still borrowed
12
13 error[E0597]: `local` does not live long enough
14   --> $DIR/local-outlives-static-via-hrtb.rs:25:45
15    |
16 LL |     assert_static_via_hrtb_with_assoc_type(&&local);
17    |     ----------------------------------------^^^^^^-
18    |     |                                       |
19    |     |                                       borrowed value does not live long enough
20    |     argument requires that `local` is borrowed for `'static`
21 LL | }
22    | - `local` dropped here while still borrowed
23
24 error: aborting due to 2 previous errors
25
26 For more information about this error, try `rustc --explain E0597`.