test: Remove 'error:' from error pattern

May include ansi escape code for color rendering on certain terminal.
This commit is contained in:
Haitao Li 2011-12-20 13:31:31 +08:00
parent 5cfcf20b25
commit 28b825d846
4 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
// error-pattern:error: Variable 'x' captured more than once
// error-pattern:Variable 'x' captured more than once
fn main() {
let x = 5;
let y = sendfn[move x; copy x]() -> int { x };
}
}

View File

@ -1,4 +1,4 @@
// error-pattern:error: Variable 'x' captured more than once
// error-pattern:Variable 'x' captured more than once
fn main() {
let x = 5;
let y = sendfn[copy x, x]() -> int { x };

View File

@ -1,4 +1,4 @@
// error-pattern: error: Variable 'x' captured more than once
// error-pattern:Variable 'x' captured more than once
fn main() {
let x = 5;
let y = sendfn[move x, x]() -> int { x };

View File

@ -1,4 +1,4 @@
// error-pattern: error: Upvars (like 'x') cannot be moved into a closure
// error-pattern:Upvars (like 'x') cannot be moved into a closure
fn main() {
let x = 5;
let _y = sendfn[move x]() -> int {