]> git.lizzy.rs Git - rust.git/blob - src/test/ui/closure_context/issue-42065.stderr
:arrow_up: rust-analyzer
[rust.git] / src / test / ui / closure_context / issue-42065.stderr
1 error[E0382]: use of moved value: `debug_dump_dict`
2   --> $DIR/issue-42065.rs:11:5
3    |
4 LL |     debug_dump_dict();
5    |     ----------------- `debug_dump_dict` moved due to this call
6 LL |     debug_dump_dict();
7    |     ^^^^^^^^^^^^^^^ value used here after move
8    |
9 note: closure cannot be invoked more than once because it moves the variable `dict` out of its environment
10   --> $DIR/issue-42065.rs:6:29
11    |
12 LL |         for (key, value) in dict {
13    |                             ^^^^
14 note: this value implements `FnOnce`, which causes it to be moved when called
15   --> $DIR/issue-42065.rs:10:5
16    |
17 LL |     debug_dump_dict();
18    |     ^^^^^^^^^^^^^^^
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0382`.