rust/src/test/run-fail/non-exhaustive-match.rs

19 lines
195 B
Rust
Raw Normal View History

// xfail-stage0
// xfail-stage1
// xfail-stage2
// -*- rust -*-
// error-pattern::non-exhaustive match failure
tag t {
a;
b;
}
fn main() {
auto x = a;
alt (x) {
case (b) { }
}
}