rust/tests/ui/pattern/usefulness/issue-40221.rs
2023-01-11 09:32:08 +00:00

17 lines
172 B
Rust

enum P {
C(PC),
}
enum PC {
Q,
QA,
}
fn test(proto: P) {
match proto { //~ ERROR non-exhaustive patterns
P::C(PC::Q) => (),
}
}
fn main() {}