rust/src/test/ui/span/issue-11925.stderr

15 lines
447 B
Plaintext
Raw Normal View History

2017-05-27 12:58:52 -05:00
error[E0597]: `x` does not live long enough
--> $DIR/issue-11925.rs:18:36
|
18 | let f = to_fn_once(move|| &x);
| ^
| |
| borrow occurs here
| `x` dropped here while still borrowed
...
23 | }
| - borrowed value needs to live until here
error: aborting due to previous error(s)