summary refs log tree commit diff
path: root/src/test/ui/issues/issue-2111.rs
blob: 7e5835e8697a331553fbd0948e45d434c91b0599 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
fn foo(a: Option<usize>, b: Option<usize>) {
  match (a,b) {
  //~^ ERROR: non-exhaustive patterns: `(None, None)` not covered
    (Some(a), Some(b)) if a == b => { }
    (Some(_), None) |
    (None, Some(_)) => { }
  }
}

fn main() {
  foo(None, None);
}