rust/src/test/run-fail/non-exhaustive-match.rs
Brian Anderson 70106f35ce test: Fix run-fail testing and bring tests up to date
A typo in the Makefile was causing these to not run. Happily, a lot of these
tests pass, so un-xfailed.
2011-05-24 22:09:12 -04:00

16 lines
146 B
Rust

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