blob: a4efbb5684c2c104bd78c3cb97047bef4352eccb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// -*- rust -*-
// error-pattern: non-exhaustive patterns
enum t { a(u), b }
enum u { c, d }
fn main() {
let x = a(c);
alt x {
a(d) { fail "hello"; }
b { fail "goodbye"; }
}
}
|