summary refs log tree commit diff
path: root/src/test/ui/issues/issue-7867.rs
blob: a1997fbf19aae44ca372c312ade840fcef02a7d8 (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 type `(bool, bool)`
        //~| found type `A`
        //~| expected tuple, found enum `A`
        _ => ()
    }
}