rust/tests/ui/issues/issue-7867.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
283 B
Rust
Raw Normal View History

2014-10-25 22:07:41 +00:00
enum A { B, C }
mod foo { pub fn bar() {} }
fn main() {
match (true, false) {
2015-01-12 06:01:44 +00:00
A::B => (),
//~^ ERROR mismatched types
//~| expected `(bool, bool)`, found `A`
//~| expected tuple `(bool, bool)`
//~| found enum `A`
2014-10-25 22:07:41 +00:00
_ => ()
}
}