1 error[E0597]: `y` does not live long enough
2 --> $DIR/const-expr-lifetime-err.rs:23:30
5 | -- lifetime `'a` defined here
7 LL | equate(InvariantRef::new(&y), const { InvariantRef::<'a>::NEW });
8 | ------------------^^-
10 | | borrowed value does not live long enough
11 | argument requires that `y` is borrowed for `'a`
14 | - `y` dropped here while still borrowed
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0597`.