testsuite: Update error messages. Unbreak build, I hope
This commit is contained in:
parent
6b6acde972
commit
90372da5a8
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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`
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user