fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
430 B12 linesraw
1error: borrowed data cannot be stored outside of its closure
2  --> $DIR/regions-escape-bound-fn-2.rs:8:27
3   |
4LL |     let mut x = None;
5   |         ----- borrowed data cannot be stored into here...
6LL |     with_int(|y| x = Some(y));
7   |              ---          ^ cannot be stored outside of its closure
8   |              |
9   |              ...because it cannot outlive this closure
10
11error: aborting due to previous error
12