]> git.proxmox.com Git - rustc.git/blame - src/test/ui/pattern/usefulness/nested-exhaustive-match.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / pattern / usefulness / nested-exhaustive-match.rs
CommitLineData
b7449926 1// run-pass
0bf4aa26 2#![allow(dead_code)]
c34b1796
AL
3// pretty-expanded FIXME #23616
4
5struct Foo { foo: bool, bar: Option<isize>, baz: isize }
223e47cc
LB
6
7pub fn main() {
1a4d82fc
JJ
8 match (Foo{foo: true, bar: Some(10), baz: 20}) {
9 Foo{foo: true, bar: Some(_), ..} => {}
10 Foo{foo: false, bar: None, ..} => {}
11 Foo{foo: true, bar: None, ..} => {}
12 Foo{foo: false, bar: Some(_), ..} => {}
223e47cc
LB
13 }
14}