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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
767 B
Plaintext
Raw Normal View History

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();
| ----------------- `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
|
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
|
2018-02-23 00:42:32 +00: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 21:28:36 +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`.