16 lines
231 B
Rust
16 lines
231 B
Rust
|
mod bar {
|
||
|
enum foo {
|
||
|
alpha,
|
||
|
beta,
|
||
|
charlie
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
import bar::{alpha, charlie};
|
||
|
alt alpha {
|
||
|
alpha | beta {} //~ ERROR: inconsistent number of bindings
|
||
|
charlie {}
|
||
|
}
|
||
|
}
|