rust/tests/ui/pattern/usefulness/issue-4321.rs
2023-01-11 09:32:08 +00: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"
});
}