fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
1error[E0597]: `v` does not live long enough 2 --> $DIR/method-ufcs-inherent-1.rs:16:26 3 | 4LL | fn foo<'a>() { 5 | -- lifetime `'a` defined here 6LL | let v = 22; 7LL | let x = A::<'a>::new(&v, 22); 8 | -------------^^----- 9 | | | 10 | | borrowed value does not live long enough 11 | argument requires that `v` is borrowed for `'a` 12LL | 13LL | } 14 | - `v` dropped here while still borrowed 15 16error: aborting due to previous error 17 18For more information about this error, try `rustc --explain E0597`.