fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
562 B14 linesraw
1error[E0599]: no variant or associated item named `A` found for type `SomeEnum` in the current scope
2  --> $DIR/issue-23217.rs:2:19
3   |
4LL | pub enum SomeEnum {
5   | ----------------- variant or associated item `A` not found here
6LL |     B = SomeEnum::A,
7   |                   ^
8   |                   |
9   |                   variant or associated item not found in `SomeEnum`
10   |                   help: there is a variant with a similar name: `B`
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0599`.