fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
765 B22 linesraw
1error[E0382]: use of moved value: `debug_dump_dict`
2  --> $DIR/issue-42065.rs:11:5
3   |
4LL |     debug_dump_dict();
5   |     ----------------- `debug_dump_dict` moved due to this call
6LL |     debug_dump_dict();
7   |     ^^^^^^^^^^^^^^^ value used here after move
8   |
9note: 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   |
12LL |         for (key, value) in dict {
13   |                             ^^^^
14note: this value implements `FnOnce`, which causes it to be moved when called
15  --> $DIR/issue-42065.rs:10:5
16   |
17LL |     debug_dump_dict();
18   |     ^^^^^^^^^^^^^^^
19
20error: aborting due to previous error
21
22For more information about this error, try `rustc --explain E0382`.