1 error[E0382]: use of moved value: `debug_dump_dict`
2 --> $DIR/issue-42065.rs:11:5
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
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
12 LL | for (key, value) in dict {
14 note: this value implements `FnOnce`, which causes it to be moved when called
15 --> $DIR/issue-42065.rs:10:5
17 LL | debug_dump_dict();
20 error: aborting due to previous error
22 For more information about this error, try `rustc --explain E0382`.