diff options
Diffstat (limited to 'src/test')
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 { |
