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

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

9 lines
244 B
Rust
Raw Normal View History

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