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 note: due to current limitations in the borrow checker, this implies a `'static` lifetime
14 --> $DIR/local-outlives-static-via-hrtb.rs:15:53
16 LL | fn assert_static_via_hrtb<G>(_: G) where for<'a> G: Outlives<'a> {}
19 error[E0597]: `local` does not live long enough
20 --> $DIR/local-outlives-static-via-hrtb.rs:25:45
22 LL | assert_static_via_hrtb_with_assoc_type(&&local);
23 | ----------------------------------------^^^^^^-
25 | | borrowed value does not live long enough
26 | argument requires that `local` is borrowed for `'static`
28 | - `local` dropped here while still borrowed
30 note: due to current limitations in the borrow checker, this implies a `'static` lifetime
31 --> $DIR/local-outlives-static-via-hrtb.rs:19:20
33 LL | for<'a> &'a T: Reference<AssociatedType = &'a ()>,
34 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
36 error: aborting due to 2 previous errors
38 For more information about this error, try `rustc --explain E0597`.