Skip to content

Commit 8e1f1e3

Browse files
committed
Dodge 'use' keyword in testsuite. Was burning tree.
1 parent 1795cda commit 8e1f1e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
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)