rust/src/test/ui/issues/issue-4321.rs
2018-12-25 21:08:33 -07:00

9 lines
244 B
Rust

fn main() {
let tup = (true, true);
println!("foo {:}", match tup { //~ ERROR non-exhaustive patterns: `(true, false)` not covered
(false, false) => "foo",
(false, true) => "bar",
(true, true) => "baz"
});
}