Dodge 'use' keyword in testsuite. Was burning tree.
This commit is contained in:
parent
1795cda1b7
commit
8e1f1e3b52
@ -1,10 +1,10 @@
|
||||
fn use(_i: int) {}
|
||||
fn user(_i: int) {}
|
||||
|
||||
fn foo() {
|
||||
// Here, i is *moved* into the closure: Not actually OK
|
||||
let mut i = 0;
|
||||
do task::spawn {
|
||||
use(i); //~ ERROR mutable variables cannot be implicitly captured
|
||||
user(i); //~ ERROR mutable variables cannot be implicitly captured
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user