1
- error: `true` is both a module and a builtin type
1
+ error: `true` is both a module and a primitive type
2
2
--> $DIR/ambiguity.rs:38:6
3
3
|
4
4
LL | /// [true]
@@ -13,89 +13,89 @@ help: to link to the module, prefix with `mod@`
13
13
|
14
14
LL | /// [mod@true]
15
15
| ++++
16
- help: to link to the builtin type, prefix with `prim@`
16
+ help: to link to the primitive type, prefix with `prim@`
17
17
|
18
18
LL | /// [prim@true]
19
19
| +++++
20
20
21
- error: `ambiguous` is both a struct and a function
21
+ error: `ambiguous` is both a function and a struct
22
22
--> $DIR/ambiguity.rs:27:7
23
23
|
24
24
LL | /// [`ambiguous`] is ambiguous.
25
25
| ^^^^^^^^^ ambiguous link
26
26
|
27
- help: to link to the struct, prefix with `struct@`
28
- |
29
- LL | /// [`struct@ambiguous`] is ambiguous.
30
- | +++++++
31
27
help: to link to the function, add parentheses
32
28
|
33
29
LL | /// [`ambiguous()`] is ambiguous.
34
30
| ++
31
+ help: to link to the struct, prefix with `struct@`
32
+ |
33
+ LL | /// [`struct@ambiguous`] is ambiguous.
34
+ | +++++++
35
35
36
- error: `ambiguous` is both a struct and a function
36
+ error: `ambiguous` is both a function and a struct
37
37
--> $DIR/ambiguity.rs:29:6
38
38
|
39
39
LL | /// [ambiguous] is ambiguous.
40
40
| ^^^^^^^^^ ambiguous link
41
41
|
42
- help: to link to the struct, prefix with `struct@`
43
- |
44
- LL | /// [struct@ambiguous] is ambiguous.
45
- | +++++++
46
42
help: to link to the function, add parentheses
47
43
|
48
44
LL | /// [ambiguous()] is ambiguous.
49
45
| ++
46
+ help: to link to the struct, prefix with `struct@`
47
+ |
48
+ LL | /// [struct@ambiguous] is ambiguous.
49
+ | +++++++
50
50
51
- error: `multi_conflict` is a struct , a function , and a macro
51
+ error: `multi_conflict` is a function , a struct , and a macro
52
52
--> $DIR/ambiguity.rs:31:7
53
53
|
54
54
LL | /// [`multi_conflict`] is a three-way conflict.
55
55
| ^^^^^^^^^^^^^^ ambiguous link
56
56
|
57
- help: to link to the struct, prefix with `struct@`
58
- |
59
- LL | /// [`struct@multi_conflict`] is a three-way conflict.
60
- | +++++++
61
57
help: to link to the function, add parentheses
62
58
|
63
59
LL | /// [`multi_conflict()`] is a three-way conflict.
64
60
| ++
61
+ help: to link to the struct, prefix with `struct@`
62
+ |
63
+ LL | /// [`struct@multi_conflict`] is a three-way conflict.
64
+ | +++++++
65
65
help: to link to the macro, add an exclamation mark
66
66
|
67
67
LL | /// [`multi_conflict!`] is a three-way conflict.
68
68
| +
69
69
70
- error: `type_and_value` is both a module and a constant
70
+ error: `type_and_value` is both a constant and a module
71
71
--> $DIR/ambiguity.rs:33:16
72
72
|
73
73
LL | /// Ambiguous [type_and_value].
74
74
| ^^^^^^^^^^^^^^ ambiguous link
75
75
|
76
- help: to link to the module, prefix with `mod@`
77
- |
78
- LL | /// Ambiguous [mod@type_and_value].
79
- | ++++
80
76
help: to link to the constant, prefix with `const@`
81
77
|
82
78
LL | /// Ambiguous [const@type_and_value].
83
79
| ++++++
80
+ help: to link to the module, prefix with `mod@`
81
+ |
82
+ LL | /// Ambiguous [mod@type_and_value].
83
+ | ++++
84
84
85
- error: `foo::bar` is both an enum and a function
85
+ error: `foo::bar` is both a function and an enum
86
86
--> $DIR/ambiguity.rs:35:43
87
87
|
88
88
LL | /// Ambiguous non-implied shortcut link [`foo::bar`].
89
89
| ^^^^^^^^ ambiguous link
90
90
|
91
- help: to link to the enum, prefix with `enum@`
92
- |
93
- LL | /// Ambiguous non-implied shortcut link [`enum@foo::bar`].
94
- | +++++
95
91
help: to link to the function, add parentheses
96
92
|
97
93
LL | /// Ambiguous non-implied shortcut link [`foo::bar()`].
98
94
| ++
95
+ help: to link to the enum, prefix with `enum@`
96
+ |
97
+ LL | /// Ambiguous non-implied shortcut link [`enum@foo::bar`].
98
+ | +++++
99
99
100
100
error: aborting due to 6 previous errors
101
101
0 commit comments