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