summary refs log tree commit diff
path: root/src/test/ui/closure_context/issue-42065.stderr
blob: 5c2105c4f7954e79d6fa19e4727f2388672988a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error[E0382]: use of moved value: `debug_dump_dict`
  --> $DIR/issue-42065.rs:21:5
   |
LL |     debug_dump_dict();
   |     --------------- value moved here
LL |     debug_dump_dict();
   |     ^^^^^^^^^^^^^^^ value used here after move
   |
note: closure cannot be invoked more than once because it moves the variable `dict` out of its environment
  --> $DIR/issue-42065.rs:16:29
   |
LL |         for (key, value) in dict {
   |                             ^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0382`.