fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0597]: `y` does not live long enough 2 --> $DIR/const-expr-lifetime-err.rs:23:30 3 | 4LL | fn foo<'a>() { 5 | -- lifetime `'a` defined here 6LL | let y = (); 7 | - binding `y` declared here 8LL | equate(InvariantRef::new(&y), const { InvariantRef::<'a>::NEW }); 9 | ------------------^^- 10 | | | 11 | | borrowed value does not live long enough 12 | argument requires that `y` is borrowed for `'a` 13LL | 14LL | } 15 | - `y` dropped here while still borrowed 16 17error: aborting due to previous error 18 19For more information about this error, try `rustc --explain E0597`.