2011-03-25 14:19:20 -05:00
|
|
|
// xfail-stage0
|
2011-05-03 20:13:51 -05:00
|
|
|
// xfail-stage1
|
|
|
|
// xfail-stage2
|
2010-12-02 16:50:00 -06:00
|
|
|
// -*- rust -*-
|
|
|
|
|
2011-05-12 10:24:54 -05:00
|
|
|
// error-pattern::non-exhaustive match failure
|
2010-12-02 16:50:00 -06:00
|
|
|
|
|
|
|
tag t {
|
|
|
|
a;
|
|
|
|
b;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
auto x = a;
|
|
|
|
alt (x) {
|
|
|
|
case (b) { }
|
|
|
|
}
|
|
|
|
}
|