fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
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`.