2017-05-05 23:28:36 +02:00
|
|
|
error[E0382]: use of moved value: `debug_dump_dict`
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/issue-42065.rs:21:5
|
2017-05-05 23:28:36 +02:00
|
|
|
|
|
2017-12-10 23:29:24 +03:00
|
|
|
20 | debug_dump_dict();
|
2017-11-20 13:13:27 +01:00
|
|
|
| --------------- value moved here
|
2017-12-10 23:29:24 +03:00
|
|
|
21 | debug_dump_dict();
|
2017-05-05 23:28:36 +02:00
|
|
|
| ^^^^^^^^^^^^^^^ value used here after move
|
|
|
|
|
|
2017-05-31 00:07:09 +01:00
|
|
|
note: closure cannot be invoked more than once because it moves the variable `dict` out of its environment
|
2017-06-06 09:29:06 +01:00
|
|
|
--> $DIR/issue-42065.rs:16:29
|
2017-05-31 00:07:09 +01:00
|
|
|
|
|
|
|
|
16 | for (key, value) in dict {
|
|
|
|
| ^^^^
|
2017-05-05 23:28:36 +02:00
|
|
|
|
2017-07-02 13:49:30 +03:00
|
|
|
error: aborting due to previous error
|
2017-05-05 23:28:36 +02:00
|
|
|
|