blob: 420322486c6520ba210e9b317ccda5f529a64349 [file] [log] [blame]
//@ 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 => {},
_ => {}
}
}