about summary refs log tree commit diff
path: root/tests/ui/issues/issue-7867.rs
blob: 87e7c831e68553954932cbe8c50b1fe3e3ddcc89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@ dont-require-annotations: NOTE

enum A { B, C }

mod foo { pub fn bar() {} }

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