Skip to content

Commit

Permalink
Group closure context ui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyip committed Jun 6, 2017
1 parent 2c282b8 commit b1b6490
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -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 || {
| ___________________^
Expand All @@ -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
| ^^^
Expand Down
File renamed without changes.
@@ -1,13 +1,13 @@
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
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
--> $DIR/fn_once-moved.rs:16:29
--> $DIR/issue-42065.rs:16:29
|
16 | for (key, value) in dict {
| ^^^^
Expand Down

0 comments on commit b1b6490

Please sign in to comment.