fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
495 B13 linesraw
1error[E0521]: borrowed data escapes outside of closure
2  --> $DIR/issue-45983.rs:10:18
3   |
4LL |     let mut x = None;
5   |         ----- `x` declared here, outside of the closure body
6LL |     give_any(|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
13For more information about this error, try `rustc --explain E0521`.