17 lines
172 B
Rust
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() {}
|