@@ -5,10 +5,12 @@ LL | enum Enum { Variant }
5
5
| --------- variant or associated item `mispellable` not found for this enum
6
6
...
7
7
LL | Enum::mispellable();
8
- | ^^^^^^^^^^^
9
- | |
10
- | variant or associated item not found in `Enum`
11
- | help: there is an associated function with a similar name: `misspellable`
8
+ | ^^^^^^^^^^^ variant or associated item not found in `Enum`
9
+ |
10
+ help: there is an associated function with a similar name
11
+ |
12
+ LL | Enum::misspellable();
13
+ | ~~~~~~~~~~~~
12
14
13
15
error[E0599]: no variant or associated item named `mispellable_trait` found for enum `Enum` in the current scope
14
16
--> $DIR/associated-item-enum.rs:18:11
@@ -17,10 +19,12 @@ LL | enum Enum { Variant }
17
19
| --------- variant or associated item `mispellable_trait` not found for this enum
18
20
...
19
21
LL | Enum::mispellable_trait();
20
- | ^^^^^^^^^^^^^^^^^
21
- | |
22
- | variant or associated item not found in `Enum`
23
- | help: there is an associated function with a similar name: `misspellable_trait`
22
+ | ^^^^^^^^^^^^^^^^^ variant or associated item not found in `Enum`
23
+ |
24
+ help: there is an associated function with a similar name
25
+ |
26
+ LL | Enum::misspellable_trait();
27
+ | ~~~~~~~~~~~~~~~~~~
24
28
25
29
error[E0599]: no variant or associated item named `MISPELLABLE` found for enum `Enum` in the current scope
26
30
--> $DIR/associated-item-enum.rs:19:11
@@ -29,10 +33,12 @@ LL | enum Enum { Variant }
29
33
| --------- variant or associated item `MISPELLABLE` not found for this enum
30
34
...
31
35
LL | Enum::MISPELLABLE;
32
- | ^^^^^^^^^^^
33
- | |
34
- | variant or associated item not found in `Enum`
35
- | help: there is an associated constant with a similar name: `MISSPELLABLE`
36
+ | ^^^^^^^^^^^ variant or associated item not found in `Enum`
37
+ |
38
+ help: there is an associated constant with a similar name
39
+ |
40
+ LL | Enum::MISSPELLABLE;
41
+ | ~~~~~~~~~~~~
36
42
37
43
error: aborting due to 3 previous errors
38
44
0 commit comments