1 2 3 4 5
pub enum SomeEnum { B = SomeEnum::A, //~ ERROR no variant or associated item named `A` found } fn main() {}