1 error[E0599]: no variant named `B` found for enum `S`
2 --> $DIR/issue-34209.rs:7:12
5 | ------ variant `B` not found here
8 | ^ help: there is a variant with a similar name: `A`
10 error: aborting due to previous error
12 For more information about this error, try `rustc --explain E0599`.