rust/tests/ui/closure_context/issue-42065.stderr

23 lines
765 B
Plaintext
Raw Normal View History

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