2017-05-05 16:28:36 -05:00
|
|
|
error[E0382]: use of moved value: `debug_dump_dict`
|
|
|
|
--> $DIR/fn_once-moved.rs:21:5
|
|
|
|
|
|
2017-05-30 04:47:51 -05:00
|
|
|
16 | for (key, value) in dict {
|
|
|
|
| ---- dict moved here
|
|
|
|
...
|
2017-05-05 16:28:36 -05:00
|
|
|
20 | debug_dump_dict();
|
|
|
|
| --------------- value moved here
|
|
|
|
21 | debug_dump_dict();
|
|
|
|
| ^^^^^^^^^^^^^^^ value used here after move
|
|
|
|
|
|
2017-05-30 04:47:51 -05:00
|
|
|
= help: closure cannot be invoked more than once because it moves the variable `dict` out of its environment
|
2017-05-05 16:28:36 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|