summaryrefslogtreecommitdiffstats
path: root/tests/ui/pattern/usefulness/issue-4321.rs
blob: 9715f2eba2fc8873ca513f1acae61fcd2e435c1d (plain)
1
2
3
4
5
6
7
8
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"
    });
}