]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/match-struct.rs
Merge commit '1411a98352ba6bee8ba3b0131c9243e5db1e6a2e' into sync_cg_clif-2021-12-31
[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         _ => ()
10     }
11 }