rust/tests/ui/issues/issue-19086.rs

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

14 lines
252 B
Rust
Raw Normal View History

2014-11-19 22:06:53 +00:00
use Foo::FooB;
2014-11-19 22:06:53 +00:00
enum Foo {
FooB { x: i32, y: i32 }
}
fn main() {
let f = FooB { x: 3, y: 4 };
match f {
FooB(a, b) => println!("{} {}", a, b),
//~^ ERROR expected tuple struct or tuple variant, found variant `FooB`
}
}