86062ef930
This ensures it gets sign extended correctly. Fixes #78
14 lines
186 B
Rust
14 lines
186 B
Rust
enum AB { A = -1, B = 1 }
|
|
|
|
fn main() {
|
|
match AB::A {
|
|
AB::A => (),
|
|
AB::B => panic!(),
|
|
}
|
|
|
|
match AB::B {
|
|
AB::A => panic!(),
|
|
AB::B => (),
|
|
}
|
|
}
|