]> git.lizzy.rs Git - rust.git/commitdiff
test: Remove 'error:' from error pattern
authorHaitao Li <lihaitao@gmail.com>
Tue, 20 Dec 2011 05:31:31 +0000 (13:31 +0800)
committerHaitao Li <lihaitao@gmail.com>
Tue, 20 Dec 2011 07:38:40 +0000 (15:38 +0800)
May include ansi escape code for color rendering on certain terminal.

src/test/compile-fail/cap-clause-both-copy-and-move.rs
src/test/compile-fail/cap-clause-double-copy.rs
src/test/compile-fail/cap-clause-double-move.rs
src/test/compile-fail/cap-clause-move-upvar.rs

index 0758ad67bd56bc5a48d40765d0c62a9c3a185460..96ccf1c60e59cc4664c416a7d394b6e313b5d66b 100644 (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 };
-}
\ No newline at end of file
+}
index 2e1008bad1c6b824c170b5d5f1616e4225cda5a5..317cc21fd7bcb967745d35c53ce9611eb8f2f154 100644 (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 };
index 89e1a4a5a51e758710a265a20f8fda8aad16dc6c..d985642d7ba2260c356b4ecaa78e4811c0037e5e 100644 (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 };
index 33b0a67a7e4dd54a52d1b779dd697fc111d18efe..9a9a43795761b2762c39c9467f91c758402959a2 100644 (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 {