]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/match-struct.rs
e82d9581b2d1e0f7f8b77ae8fcf72dc676bb90de
[rust.git] / src / test / ui / match / match-struct.rs
1 struct S { a: isize }
2 enum E { C(isize) }
3
4 fn main() {
5     match (S { a: 1 }) {
6         E::C(_) => (),
7         //~^ ERROR mismatched types
8         //~| expected struct `S`, found enum `E`
9         //~| expected struct `S`
10         //~| found enum `E`
11         _ => ()
12     }
13 }