fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
553 B15 linesraw
1error[E0599]: no variant or associated item named `Baz` found for enum `Foo` in the current scope
2  --> $DIR/issue-28971.rs:7:18
3   |
4LL | enum Foo {
5   | -------- variant or associated item `Baz` not found here
6...
7LL |             Foo::Baz(..) => (),
8   |                  ^^^
9   |                  |
10   |                  variant or associated item not found in `Foo`
11   |                  help: there is a variant with a similar name: `Bar`
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0599`.