fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0597]: `x` does not live long enough 2 --> $DIR/issue-68550.rs:12:20 3 | 4LL | fn run<'a, A>(x: A) 5 | -- - binding `x` declared here 6 | | 7 | lifetime `'a` defined here 8... 9LL | let _: &'a A = &x; 10 | ----- ^^ borrowed value does not live long enough 11 | | 12 | type annotation requires that `x` is borrowed for `'a` 13LL | } 14 | - `x` dropped here while still borrowed 15 16error: aborting due to previous error 17 18For more information about this error, try `rustc --explain E0597`.