fork/rust

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

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

master
498 B16 linesraw
1error[E0597]: `c` does not live long enough
2  --> $DIR/regionck-unboxed-closure-lifetimes.rs:8:21
3   |
4LL |         let c = 1;
5   |             - binding `c` declared here
6LL |         let c_ref = &c;
7   |                     ^^ borrowed value does not live long enough
8...
9LL |     }
10   |     - `c` dropped here while still borrowed
11LL |     f.use_mut();
12   |     - borrow later used here
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0597`.