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

17 lines
285 B
Rust
Raw Normal View History

mod bar {
#[legacy_exports];
enum foo {
alpha,
beta,
charlie
}
}
fn main() {
use bar::{alpha, charlie};
2012-08-06 12:34:08 -07:00
match alpha {
alpha | beta => {} //~ ERROR variable `beta` from pattern #2 is not bound in pattern #1
2012-08-03 19:59:04 -07:00
charlie => {}
}
}