summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-7867.rs
blob: e9fd10c6613d4d1637c2708bea6810eae9eca7ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
enum A { B, C }

mod foo { pub fn bar() {} }

fn main() {
    match (true, false) {
        A::B => (),
        //~^ ERROR mismatched types
        //~| expected `(bool, bool)`, found `A`
        //~| expected tuple `(bool, bool)`
        //~| found enum `A`
        _ => ()
    }
}