2017-05-05 21:28:36 +00:00
|
|
|
error[E0382]: use of moved value: `debug_dump_dict`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-42065.rs:11:5
|
2017-05-05 21:28:36 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | debug_dump_dict();
|
2020-06-11 17:48:46 +00:00
|
|
|
| ----------------- `debug_dump_dict` moved due to this call
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | debug_dump_dict();
|
2017-05-05 21:28:36 +00:00
|
|
|
| ^^^^^^^^^^^^^^^ value used here after move
|
|
|
|
|
|
2017-05-30 23:07:09 +00:00
|
|
|
note: closure cannot be invoked more than once because it moves the variable `dict` out of its environment
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-42065.rs:6:29
|
2017-05-30 23:07:09 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | for (key, value) in dict {
|
2017-05-30 23:07:09 +00:00
|
|
|
| ^^^^
|
2020-06-11 17:48:46 +00:00
|
|
|
note: this value implements `FnOnce`, which causes it to be moved when called
|
|
|
|
--> $DIR/issue-42065.rs:10:5
|
|
|
|
|
|
|
|
|
LL | debug_dump_dict();
|
|
|
|
| ^^^^^^^^^^^^^^^
|
2017-05-05 21:28:36 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2017-05-05 21:28:36 +00:00
|
|
|
|
2018-03-03 14:59:40 +00:00
|
|
|
For more information about this error, try `rustc --explain E0382`.
|