rust/src/test/compile-fail/issue-2849.rs
Niko Matsakis a6a5c48c64 make ref x bindings produce region ptrs and fix various minor bugs
we now detect inconsistent modes, binding names, and various other errors.
typeck/trans integration is mostly done.

borrowck not so much.

more tests needed.
2012-08-06 16:12:40 -07:00

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
}
}