diff --git a/src/test/compile-fail/bad-alt.rs b/src/test/compile-fail/bad-alt.rs index c91274be2a7..cc25c8d580b 100644 --- a/src/test/compile-fail/bad-alt.rs +++ b/src/test/compile-fail/bad-alt.rs @@ -1,7 +1,7 @@ // xfail-stage0 // xfail-stage1 // xfail-stage2 -// error-pattern: Unexpected token 'x' +// error-pattern: expecting fn main() { let int x = 5; diff --git a/src/test/compile-fail/bad-name.rs b/src/test/compile-fail/bad-name.rs index f015ef9981a..94de7958376 100644 --- a/src/test/compile-fail/bad-name.rs +++ b/src/test/compile-fail/bad-name.rs @@ -2,7 +2,7 @@ // xfail-stage1 // xfail-stage2 -// error-pattern: malformed name +// error-pattern: expecting fn main() { let x.y[int].z foo;