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