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