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