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