rust/tests/ui/pattern/usefulness/issue-40221.rs

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() {}