aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-fail/non-exhaustive-match.rs
blob: 85418022ff00a51e7697616397d60d6dcc188efd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// xfail-stage0
// -*- rust -*-

// error-pattern:non-exhaustive match failure

tag t {
  a;
  b;
}

fn main() {
  auto x = a;
  alt (x) {
    case (b) { }
  }
}