granite-rust/src/test/ui/closure_context/issue-42065.stderr

17 lines
505 B
Text
Raw Normal View History

2017-05-05 23:28:36 +02:00
error[E0382]: use of moved value: `debug_dump_dict`
2017-06-06 09:29:06 +01:00
--> $DIR/issue-42065.rs:21:5
2017-05-05 23:28:36 +02:00
|
20 | debug_dump_dict();
| --------------- value moved here
21 | 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
2017-06-06 09:29:06 +01:00
--> $DIR/issue-42065.rs:16:29
|
16 | for (key, value) in dict {
| ^^^^
2017-05-05 23:28:36 +02:00
error: aborting due to previous error
2017-05-05 23:28:36 +02:00