Skip to content

Commit a04e5ca

Browse files
committed
---
yaml --- r: 23212 b: refs/heads/master c: 8e1f1e3 h: refs/heads/master v: v3
1 parent 5aff157 commit a04e5ca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 1795cda1b7f87d1217dd04d580289cd46fb43310
2+
refs/heads/master: 8e1f1e3b5208873e94f6de95c1f0f0b690a7aa89
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/src/test/compile-fail/kindck-implicit-close-over-mut-var.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
fn use(_i: int) {}
1+
fn user(_i: int) {}
22

33
fn foo() {
44
// Here, i is *moved* into the closure: Not actually OK
55
let mut i = 0;
66
do task::spawn {
7-
use(i); //~ ERROR mutable variables cannot be implicitly captured
7+
user(i); //~ ERROR mutable variables cannot be implicitly captured
88
}
99
}
1010

0 commit comments

Comments
 (0)