summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-7867.rs
blob: 3074052f14f2047caac4dbffb10bd4c34468d4ff (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 tuple, found enum `A`
        //~| expected tuple `(bool, bool)`
        //~| found enum `A`
        _ => ()
    }
}