]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-escaping-closure-error-2.polonius.stderr
Bless output of test borrowck/borrowck-escaping-closure-error-2.rs for Polonius
[rust.git] / src / test / ui / borrowck / borrowck-escaping-closure-error-2.polonius.stderr
1 error[E0597]: `books` does not live long enough
2   --> $DIR/borrowck-escaping-closure-error-2.rs:11:17
3    |
4 LL |     Box::new(|| books.push(4))
5    |     ------------^^^^^---------
6    |     |        |  |
7    |     |        |  borrowed value does not live long enough
8    |     |        value captured here
9    |     borrow later used here
10 LL |
11 LL | }
12    | - `books` dropped here while still borrowed
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0597`.