]> git.proxmox.com Git - rustc.git/blob - src/test/ui/match/match-struct.rs
New upstream version 1.41.1+dfsg1
[rustc.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 }