mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
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() {}
|