Fix another broken test
This commit is contained in:
parent
e79dd23ac1
commit
2674f7902f
@ -14,7 +14,7 @@ fn bar() {
|
|||||||
let mut i = 0;
|
let mut i = 0;
|
||||||
while i < 10 {
|
while i < 10 {
|
||||||
do task::spawn {
|
do task::spawn {
|
||||||
use(i); //~ ERROR mutable variables cannot be implicitly captured
|
user(i); //~ ERROR mutable variables cannot be implicitly captured
|
||||||
}
|
}
|
||||||
i += 1;
|
i += 1;
|
||||||
}
|
}
|
||||||
@ -25,7 +25,7 @@ fn car() {
|
|||||||
let mut i = 0;
|
let mut i = 0;
|
||||||
while i < 10 {
|
while i < 10 {
|
||||||
do task::spawn |copy i| {
|
do task::spawn |copy i| {
|
||||||
use(i);
|
user(i);
|
||||||
}
|
}
|
||||||
i += 1;
|
i += 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user