Skip to content

Commit 28b825d

Browse files
committed
test: Remove 'error:' from error pattern
May include ansi escape code for color rendering on certain terminal.
1 parent 5cfcf20 commit 28b825d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// error-pattern:error: Variable 'x' captured more than once
1+
// error-pattern:Variable 'x' captured more than once
22
fn main() {
33
let x = 5;
44
let y = sendfn[move x; copy x]() -> int { x };
5-
}
5+
}

src/test/compile-fail/cap-clause-double-copy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// error-pattern:error: Variable 'x' captured more than once
1+
// error-pattern:Variable 'x' captured more than once
22
fn main() {
33
let x = 5;
44
let y = sendfn[copy x, x]() -> int { x };

src/test/compile-fail/cap-clause-double-move.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// error-pattern: error: Variable 'x' captured more than once
1+
// error-pattern:Variable 'x' captured more than once
22
fn main() {
33
let x = 5;
44
let y = sendfn[move x, x]() -> int { x };

src/test/compile-fail/cap-clause-move-upvar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// error-pattern: error: Upvars (like 'x') cannot be moved into a closure
1+
// error-pattern:Upvars (like 'x') cannot be moved into a closure
22
fn main() {
33
let x = 5;
44
let _y = sendfn[move x]() -> int {

0 commit comments

Comments
 (0)