rust/tests/ui/pattern/usefulness/issue-4321.rs

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"
});
}