Fix tests
This commit is contained in:
parent
61ea8b33d0
commit
0643494bc4
4 changed files with 14 additions and 4 deletions
|
|
@ -10,7 +10,8 @@
|
|||
|
||||
fn main() {
|
||||
match 42 {
|
||||
x < 7 => (), //~ ERROR unexpected token `<`
|
||||
x < 7 => (),
|
||||
//~^ error: unexpected token: `<`
|
||||
_ => ()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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: `<`
|
||||
|
|
|
|||
|
|
@ -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!")
|
||||
}
|
||||
}
|
||||
|
|
@ -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 => (),
|
||||
_ => ()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue