]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-steal-closure.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / regions / regions-steal-closure.stderr
1 error[E0597]: `i` does not live long enough
2   --> $DIR/regions-steal-closure.rs:14:28
3    |
4 LL |         box_it(Box::new(|| i += 1)) //~ ERROR `i` does not live long enough
5    |                         -- ^ borrowed value does not live long enough
6    |                         |
7    |                         capture occurs here
8 LL |     };
9    |     - borrowed value only lives until here
10 LL |     cl_box.cl.call_mut(());
11 LL | }
12    | - borrowed value needs to live until here
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0597`.