]> git.lizzy.rs Git - rust.git/blob - tests/ui/match/match-struct.rs
Auto merge of #106812 - oli-obk:output_filenames, r=petrochenkov
[rust.git] / tests / 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         _ => ()
10     }
11 }