testsuite: Update error messages. Unbreak build, I hope

This commit is contained in:
Tim Chevalier 2013-01-18 13:34:47 -08:00
parent 6b6acde972
commit 90372da5a8
5 changed files with 7 additions and 7 deletions

View File

@ -19,9 +19,9 @@ fn main() {
loop {
// tjc: Not sure why it prints the same error twice
x = move y; //~ ERROR use of moved value
//~^ NOTE move of variable occurred here
//~^ NOTE move of value occurred here
//~^^ ERROR use of moved value
//~^^^ NOTE move of variable occurred here
//~^^^ NOTE move of value occurred here
copy x;
}

View File

@ -17,8 +17,8 @@ fn main() {
// tjc: not sure why it prints the same error twice
while true { while true { while true { x = move y; copy x; } } }
//~^ ERROR use of moved value: `y`
//~^^ NOTE move of variable occurred here
//~^^ NOTE move of value occurred here
//~^^^ ERROR use of moved value: `y`
//~^^^^ NOTE move of variable occurred here
//~^^^^ NOTE move of value occurred here
}
}

View File

@ -10,7 +10,7 @@
fn main() {
let x = @5;
let y = move x; //~ NOTE move of variable occurred here
let y = move x; //~ NOTE move of value occurred here
log(debug, *x); //~ ERROR use of moved value: `x`
copy y;
}

View File

@ -19,7 +19,7 @@ enum _chan<T> = int;
// Tests that "log(debug, message);" is flagged as using
// message after the send deinitializes it
fn test00_start(ch: _chan<int>, message: int, _count: int) {
send(ch, move message); //~ NOTE move of variable occurred here
send(ch, move message); //~ NOTE move of value occurred here
log(debug, message); //~ ERROR use of moved value: `message`
}

View File

@ -16,7 +16,7 @@ fn main() {
let v = ~[1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
let arc_v = arc::ARC(v);
do task::spawn() |move arc_v| { //~ NOTE move of variable occurred here
do task::spawn() |move arc_v| { //~ NOTE move of value occurred here
let v = *arc::get(&arc_v);
assert v[3] == 4;
};