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