fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
1.4 KiB36 linesraw
1error[E0599]: no variant or associated item named `mispellable` found for enum `Enum` in the current scope
2  --> $DIR/associated-item-enum.rs:17:11
3   |
4LL | enum Enum { Variant }
5   | --------- variant or associated item `mispellable` not found here
6...
7LL |     Enum::mispellable();
8   |           ^^^^^^^^^^^
9   |           |
10   |           variant or associated item not found in `Enum`
11   |           help: there is a method with a similar name: `misspellable`
12
13error[E0599]: no variant or associated item named `mispellable_trait` found for enum `Enum` in the current scope
14  --> $DIR/associated-item-enum.rs:18:11
15   |
16LL | enum Enum { Variant }
17   | --------- variant or associated item `mispellable_trait` not found here
18...
19LL |     Enum::mispellable_trait();
20   |           ^^^^^^^^^^^^^^^^^ variant or associated item not found in `Enum`
21
22error[E0599]: no variant or associated item named `MISPELLABLE` found for enum `Enum` in the current scope
23  --> $DIR/associated-item-enum.rs:19:11
24   |
25LL | enum Enum { Variant }
26   | --------- variant or associated item `MISPELLABLE` not found here
27...
28LL |     Enum::MISPELLABLE;
29   |           ^^^^^^^^^^^
30   |           |
31   |           variant or associated item not found in `Enum`
32   |           help: there is an associated constant with a similar name: `MISSPELLABLE`
33
34error: aborting due to 3 previous errors
35
36For more information about this error, try `rustc --explain E0599`.