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