2018-08-08 07:28:26 -05:00
|
|
|
error[E0597]: `x` does not live long enough
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/unboxed-closure-region.rs:8:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | || x //~ ERROR `x` does not live long enough
|
|
|
|
| -- ^ borrowed value does not live long enough
|
|
|
|
| |
|
|
|
|
| capture occurs here
|
|
|
|
LL | };
|
|
|
|
| - borrowed value only lives until here
|
2018-08-15 16:39:30 -05:00
|
|
|
LL | _f;
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | }
|
|
|
|
| - borrowed value needs to live until here
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0597`.
|