]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/match-struct.rs
Rollup merge of #61389 - Zoxc:arena-cleanup, r=eddyb
[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 type `S`
9         //~| found type `E`
10         //~| expected struct `S`, found enum `E`
11         _ => ()
12     }
13 }