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