2014-06-23 17:12:17 -05:00
|
|
|
pub enum T {
|
|
|
|
T1(()),
|
2020-12-16 18:42:49 -06:00
|
|
|
T2(()),
|
2014-06-23 17:12:17 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
pub enum V {
|
2015-01-08 04:54:35 -06:00
|
|
|
V1(isize),
|
2020-12-16 18:42:49 -06:00
|
|
|
V2(bool),
|
2014-06-23 17:12:17 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2014-11-06 02:05:53 -06:00
|
|
|
match (T::T1(()), V::V2(true)) {
|
2022-09-02 22:01:35 -05:00
|
|
|
//~^ ERROR non-exhaustive patterns: `(T::T1(()), V::V2(_))` and `(T::T2(()), V::V1(_))` not covered
|
2014-11-06 02:05:53 -06:00
|
|
|
(T::T1(()), V::V1(i)) => (),
|
2020-12-16 18:42:49 -06:00
|
|
|
(T::T2(()), V::V2(b)) => (),
|
2014-06-23 17:12:17 -05:00
|
|
|
}
|
|
|
|
}
|