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