]> git.proxmox.com Git - rustc.git/blame - src/test/ui/pattern/usefulness/struct-like-enum-nonexhaustive.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / pattern / usefulness / struct-like-enum-nonexhaustive.rs
CommitLineData
223e47cc 1enum A {
1a4d82fc 2 B { x: Option<isize> },
223e47cc
LB
3 C
4}
5
6fn main() {
1a4d82fc 7 let x = A::B { x: Some(3) };
223e47cc 8 match x { //~ ERROR non-exhaustive patterns
1a4d82fc
JJ
9 A::C => {}
10 A::B { x: None } => {}
223e47cc
LB
11 }
12}