blob: 63b21faa62bd2ce0486cad546d4299ec5a6f6a88 [file] [log] [blame]
#[repr(u8)]
enum Alpha {
V1 = 41,
V2 = Self::V1 as u8 + 1, // OK; See #50072.
V3 = Self::V1 {} as u8 + 2, //~ ERROR cycle detected when const-evaluating
}
fn main() {}