13 lines
431 B
Plaintext
13 lines
431 B
Plaintext
|
error: borrowed data cannot be stored outside of its closure
|
||
|
--> $DIR/regions-escape-bound-fn-2.rs:18:27
|
||
|
|
|
||
|
17 | let mut x = None;
|
||
|
| ----- borrowed data cannot be stored into here...
|
||
|
18 | with_int(|y| x = Some(y));
|
||
|
| --- ^ cannot be stored outside of its closure
|
||
|
| |
|
||
|
| ...because it cannot outlive this closure
|
||
|
|
||
|
error: aborting due to previous error
|
||
|
|