a6a5c48c64
we now detect inconsistent modes, binding names, and various other errors. typeck/trans integration is mostly done. borrowck not so much. more tests needed.
8 lines
163 B
Rust
8 lines
163 B
Rust
enum foo { alpha, beta(int) }
|
|
|
|
fn main() {
|
|
match alpha {
|
|
alpha | beta(i) => {} //~ ERROR variable `i` from pattern #2 is not bound in pattern #1
|
|
}
|
|
}
|