rust/tests/ui/parser/pat-lt-bracket-3.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
274 B
Rust
Raw Normal View History

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