]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/match-struct.rs
Sync core::simd up to rust-lang/portable-simd@2e081db92aa3ee0a4563bc28ce01bdad5b1b2efd
[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 }