2015-02-19 08:01:57 -06:00
|
|
|
struct Foo<T>(T, T);
|
|
|
|
|
|
|
|
impl<T> Foo<T> {
|
|
|
|
fn foo(&self) {
|
|
|
|
match *self {
|
2023-08-01 10:30:40 -05:00
|
|
|
Foo<T>(x, y) => { //~ ERROR generic args in patterns require the turbofish syntax
|
2015-02-19 08:01:57 -06:00
|
|
|
println!("Goodbye, World!")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-01-06 09:33:05 -06:00
|
|
|
|
|
|
|
fn main() {}
|