granite-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
279 B
Rust
Raw Normal View History

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