summary refs log tree commit diff
path: root/src/test/ui/closure_context/issue-42065.stderr
blob: 69d98654048cbe22079781970b9f6766e6718e79 (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:11: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:6:29
   |
LL |         for (key, value) in dict {
   |                             ^^^^

error: aborting due to previous error

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