Group closure context ui tests

This commit is contained in:
Tommy Ip 2017-06-06 09:29:06 +01:00
parent 2c282b8e5d
commit b1b6490c5d
6 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
error[E0525]: expected a closure that implements the `Fn` trait, but this closure only implements `FnOnce`
--> $DIR/issue-26046.rs:14:19
--> $DIR/issue-26046-fn-once.rs:14:19
|
14 | let closure = move || {
| ___________________^
@ -8,7 +8,7 @@ error[E0525]: expected a closure that implements the `Fn` trait, but this closur
| |_____^
|
note: closure is `FnOnce` because it moves the variable `vec` out of its environment
--> $DIR/issue-26046.rs:15:9
--> $DIR/issue-26046-fn-once.rs:15:9
|
15 | vec
| ^^^

View File

@ -1,5 +1,5 @@
error[E0382]: use of moved value: `debug_dump_dict`
--> $DIR/fn_once-moved.rs:21:5
--> $DIR/issue-42065.rs:21:5
|
20 | debug_dump_dict();
| --------------- value moved here
@ -7,7 +7,7 @@ error[E0382]: use of moved value: `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/fn_once-moved.rs:16:29
--> $DIR/issue-42065.rs:16:29
|
16 | for (key, value) in dict {
| ^^^^