Skip to content

Commit 2674f79

Browse files
committed
Fix another broken test
1 parent e79dd23 commit 2674f79

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn bar() {
1414
let mut i = 0;
1515
while i < 10 {
1616
do task::spawn {
17-
use(i); //~ ERROR mutable variables cannot be implicitly captured
17+
user(i); //~ ERROR mutable variables cannot be implicitly captured
1818
}
1919
i += 1;
2020
}
@@ -25,7 +25,7 @@ fn car() {
2525
let mut i = 0;
2626
while i < 10 {
2727
do task::spawn |copy i| {
28-
use(i);
28+
user(i);
2929
}
3030
i += 1;
3131
}

0 commit comments

Comments
 (0)