fork/rust

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

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

master
529 B16 linesraw
1error[E0597]: `a` does not live long enough
2  --> $DIR/issue-113087.rs:7:17
3   |
4LL |     for a in [1] {
5   |         - binding `a` declared here
6LL |         some_fn(&a, |c| {
7   |                 ^^ borrowed value does not live long enough
8LL |             some_closure(c);
9   |             ------------ borrow later captured here by closure
10LL |         });
11LL |     }
12   |     - `a` dropped here while still borrowed
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0597`.