]> git.lizzy.rs Git - rust.git/blob - src/test/ui/closure_context/issue-42065.stderr
report the total number of errors on compilation failure
[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:21:5
3    |
4 20 |     debug_dump_dict();
5    |     --------------- value moved here
6 21 |     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:16:29
11    |
12 16 |         for (key, value) in dict {
13    |                             ^^^^
14
15 error: aborting due to previous error
16