1 error[E0599]: no variant named `A` found for type `SomeEnum` in the current scope
2 --> $DIR/issue-23217.rs:12:9
4 LL | pub enum SomeEnum {
5 | ----------------- variant `A` not found here
7 | ^^^^^^^^^^^ variant not found in `SomeEnum`
9 = note: did you mean `SomeEnum::B`?
11 error: aborting due to previous error
13 For more information about this error, try `rustc --explain E0599`.