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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
172 B
Rust
Raw Normal View History

enum P {
C(PC),
}
enum PC {
Q,
QA,
}
fn test(proto: P) {
2017-11-20 06:13:27 -06:00
match proto { //~ ERROR non-exhaustive patterns
P::C(PC::Q) => (),
}
}
fn main() {}