blob: 9ff8755c81956798352af83414867b075cce2c5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// https://github.com/rust-lang/rust/issues/7867
//@ 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`
_ => ()
}
}
|