mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
20 lines
235 B
Rust
20 lines
235 B
Rust
//@ run-pass
|
|
|
|
// https://github.com/rust-lang/rust/issues/49181
|
|
|
|
#[derive(Eq, PartialEq)]
|
|
#[repr(i8)]
|
|
pub enum A {
|
|
B = -1,
|
|
C = 1,
|
|
}
|
|
|
|
pub const D: A = A::B;
|
|
|
|
fn main() {
|
|
match A::C {
|
|
D => {},
|
|
_ => {}
|
|
}
|
|
}
|