Dodge 'use' keyword in testsuite. Was burning tree.

This commit is contained in:
Graydon Hoare 2012-08-14 12:53:45 -07:00
parent 1795cda1b7
commit 8e1f1e3b52

View File

@ -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
}
}