Fix tests

This commit is contained in:
bombless 2015-02-20 03:10:31 +08:00
parent 61ea8b33d0
commit 0643494bc4
4 changed files with 14 additions and 4 deletions

View file

@ -10,7 +10,8 @@
fn main() {
match 42 {
x < 7 => (), //~ ERROR unexpected token `<`
x < 7 => (),
//~^ error: unexpected token: `<`
_ => ()
}
}

View file

@ -8,4 +8,5 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
fn a(B<) {} //~ ERROR unexpected token `<`
fn a(B<) {}
//~^ error: unexpected token: `<`

View file

@ -13,7 +13,8 @@ struct Foo<T>(T, T);
impl<T> Foo<T> {
fn foo(&self) {
match *self {
Foo<T>(x, y) => { //~ ERROR unexpected token `<`
Foo<T>(x, y) => {
//~^ error: unexpected token: `<`
println!("Goodbye, World!")
}
}

View file

@ -13,9 +13,16 @@ struct Foo<T>(T, T);
impl<T> Foo<T> {
fn foo(&self) {
match *self {
Foo::<T>(ref x, ref y) => { //~ ERROR unexpected token `<`
Foo::<T>(ref x, ref y) => {
println!("Goodbye, World!")
}
}
}
}
fn main() {
match 42 {
x if x < 7 => (),
_ => ()
}
}