fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1error[E0521]: borrowed data escapes outside of closure 2 --> $DIR/regions-escape-bound-fn-2.rs:8:18 3 | 4LL | let mut x = None; 5 | ----- `x` is declared here, outside of the closure body 6LL | with_int(|y| x = Some(y)); 7 | - ^^^^^^^^^^^ `y` escapes the closure body here 8 | | 9 | `y` is a reference that is only valid in the closure body 10 11error: aborting due to previous error 12