rust/src/test/compile-fail/issue-2848.rs

16 lines
265 B
Rust
Raw Normal View History

mod bar {
enum foo {
alpha,
beta,
charlie
}
}
fn main() {
import bar::{alpha, charlie};
2012-08-06 14:34:08 -05:00
match alpha {
alpha | beta => {} //~ ERROR variable `beta` from pattern #2 is not bound in pattern #1
2012-08-03 21:59:04 -05:00
charlie => {}
}
}