fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0597]: `x` does not live long enough 2 --> $DIR/regions-infer-proc-static-upvar.rs:10:13 3 | 4LL | let x = 3; 5 | - binding `x` declared here 6LL | let y = &x; 7 | ^^ borrowed value does not live long enough 8LL | / foo(move|| { 9LL | | let _a = *y; 10LL | | }); 11 | |______- argument requires that `x` is borrowed for `'static` 12LL | } 13 | - `x` dropped here while still borrowed 14 15error: aborting due to previous error 16 17For more information about this error, try `rustc --explain E0597`.