rust/tests/ui/parser/pat-lt-bracket-3.rs
2023-01-11 09:32:08 +00:00

15 lines
274 B
Rust

struct Foo<T>(T, T);
impl<T> Foo<T> {
fn foo(&self) {
match *self {
Foo<T>(x, y) => {
//~^ error: expected one of `=>`, `@`, `if`, or `|`, found `<`
println!("Goodbye, World!")
}
}
}
}
fn main() {}