1 error[E0597]: `local` does not live long enough
2 --> $DIR/local-outlives-static-via-hrtb.rs:24:28
4 LL | assert_static_via_hrtb(&local);
5 | -----------------------^^^^^^-
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);
11 | - `local` dropped here while still borrowed
13 error[E0597]: `local` does not live long enough
14 --> $DIR/local-outlives-static-via-hrtb.rs:25:45
16 LL | assert_static_via_hrtb_with_assoc_type(&&local);
17 | ----------------------------------------^^^^^^-
19 | | borrowed value does not live long enough
20 | argument requires that `local` is borrowed for `'static`
22 | - `local` dropped here while still borrowed
24 error: aborting due to 2 previous errors
26 For more information about this error, try `rustc --explain E0597`.