1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
enum P { C(PC), } enum PC { Q, QA, } fn test(proto: P) { match proto { //~ ERROR non-exhaustive patterns P::C(PC::Q) => (), } } fn main() {}