2015-02-19 22:01:57 +08:00
|
|
|
struct Foo<T>(T, T);
|
|
|
|
|
|
|
|
impl<T> Foo<T> {
|
|
|
|
fn foo(&self) {
|
|
|
|
match *self {
|
2015-02-20 03:10:31 +08:00
|
|
|
Foo<T>(x, y) => {
|
2015-03-31 09:10:11 +03:00
|
|
|
//~^ error: expected one of `=>`, `@`, `if`, or `|`, found `<`
|
2015-02-19 22:01:57 +08:00
|
|
|
println!("Goodbye, World!")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-01-06 18:33:05 +03:00
|
|
|
|
|
|
|
fn main() {}
|