2015-01-08 04:54:35 -06:00
|
|
|
struct S { a: isize }
|
|
|
|
enum E { C(isize) }
|
2013-02-19 10:43:15 -06:00
|
|
|
|
|
|
|
fn main() {
|
2014-06-13 21:09:12 -05:00
|
|
|
match (S { a: 1 }) {
|
2015-01-12 00:01:44 -06:00
|
|
|
E::C(_) => (),
|
|
|
|
//~^ ERROR mismatched types
|
2023-01-02 20:00:33 -06:00
|
|
|
//~| expected `S`, found `E`
|
2013-02-19 10:43:15 -06:00
|
|
|
_ => ()
|
|
|
|
}
|
|
|
|
}
|