about summary refs log tree commit diff
path: root/src/test/compile-fail
diff options
context:
space:
mode:
authorHaitao Li <lihaitao@gmail.com>2011-12-20 13:31:31 +0800
committerHaitao Li <lihaitao@gmail.com>2011-12-20 15:38:40 +0800
commit28b825d8469c5b6f92f367cb4aae2ea2607bc886 (patch)
tree79f44f190ad1faea4dbe562156bc406fabfcdb0c /src/test/compile-fail
parent5cfcf20b25610ceebedf38d0d9e73bff3e11d002 (diff)
downloadrust-28b825d8469c5b6f92f367cb4aae2ea2607bc886.tar.gz
rust-28b825d8469c5b6f92f367cb4aae2ea2607bc886.zip
test: Remove 'error:' from error pattern
May include ansi escape code for color rendering on certain terminal.
Diffstat (limited to 'src/test/compile-fail')
-rw-r--r--src/test/compile-fail/cap-clause-both-copy-and-move.rs4
-rw-r--r--src/test/compile-fail/cap-clause-double-copy.rs2
-rw-r--r--src/test/compile-fail/cap-clause-double-move.rs2
-rw-r--r--src/test/compile-fail/cap-clause-move-upvar.rs2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/test/compile-fail/cap-clause-both-copy-and-move.rs b/src/test/compile-fail/cap-clause-both-copy-and-move.rs
index 0758ad67bd5..96ccf1c60e5 100644
--- a/src/test/compile-fail/cap-clause-both-copy-and-move.rs
+++ b/src/test/compile-fail/cap-clause-both-copy-and-move.rs
@@ -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 };
-}
\ No newline at end of file
+}
diff --git a/src/test/compile-fail/cap-clause-double-copy.rs b/src/test/compile-fail/cap-clause-double-copy.rs
index 2e1008bad1c..317cc21fd7b 100644
--- a/src/test/compile-fail/cap-clause-double-copy.rs
+++ b/src/test/compile-fail/cap-clause-double-copy.rs
@@ -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 };
diff --git a/src/test/compile-fail/cap-clause-double-move.rs b/src/test/compile-fail/cap-clause-double-move.rs
index 89e1a4a5a51..d985642d7ba 100644
--- a/src/test/compile-fail/cap-clause-double-move.rs
+++ b/src/test/compile-fail/cap-clause-double-move.rs
@@ -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 };
diff --git a/src/test/compile-fail/cap-clause-move-upvar.rs b/src/test/compile-fail/cap-clause-move-upvar.rs
index 33b0a67a7e4..9a9a4379576 100644
--- a/src/test/compile-fail/cap-clause-move-upvar.rs
+++ b/src/test/compile-fail/cap-clause-move-upvar.rs
@@ -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 {