mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 06:22:00 +00:00
18 lines
290 B
Rust
18 lines
290 B
Rust
#[allow(non_camel_case_types)]
|
|
|
|
mod bar {
|
|
pub enum foo {
|
|
alpha,
|
|
beta,
|
|
charlie
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
use bar::foo::{alpha, charlie};
|
|
match alpha {
|
|
alpha | beta => {} //~ ERROR variable `beta` is not bound in all patterns
|
|
charlie => {}
|
|
}
|
|
}
|