1 error: `true` is both a module and a builtin type
2 --> $DIR/ambiguity.rs:38:6
7 note: the lint level is defined here
8 --> $DIR/ambiguity.rs:1:9
10 LL | #![deny(rustdoc::broken_intra_doc_links)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 help: to link to the module, prefix with `mod@`
16 help: to link to the builtin type, prefix with `prim@`
21 error: `ambiguous` is both a struct and a function
22 --> $DIR/ambiguity.rs:27:7
24 LL | /// [`ambiguous`] is ambiguous.
25 | ^^^^^^^^^ ambiguous link
27 help: to link to the struct, prefix with `struct@`
29 LL | /// [`struct@ambiguous`] is ambiguous.
31 help: to link to the function, add parentheses
33 LL | /// [`ambiguous()`] is ambiguous.
36 error: `ambiguous` is both a struct and a function
37 --> $DIR/ambiguity.rs:29:6
39 LL | /// [ambiguous] is ambiguous.
40 | ^^^^^^^^^ ambiguous link
42 help: to link to the struct, prefix with `struct@`
44 LL | /// [struct@ambiguous] is ambiguous.
46 help: to link to the function, add parentheses
48 LL | /// [ambiguous()] is ambiguous.
51 error: `multi_conflict` is a struct, a function, and a macro
52 --> $DIR/ambiguity.rs:31:7
54 LL | /// [`multi_conflict`] is a three-way conflict.
55 | ^^^^^^^^^^^^^^ ambiguous link
57 help: to link to the struct, prefix with `struct@`
59 LL | /// [`struct@multi_conflict`] is a three-way conflict.
61 help: to link to the function, add parentheses
63 LL | /// [`multi_conflict()`] is a three-way conflict.
65 help: to link to the macro, add an exclamation mark
67 LL | /// [`multi_conflict!`] is a three-way conflict.
70 error: `type_and_value` is both a module and a constant
71 --> $DIR/ambiguity.rs:33:16
73 LL | /// Ambiguous [type_and_value].
74 | ^^^^^^^^^^^^^^ ambiguous link
76 help: to link to the module, prefix with `mod@`
78 LL | /// Ambiguous [mod@type_and_value].
80 help: to link to the constant, prefix with `const@`
82 LL | /// Ambiguous [const@type_and_value].
85 error: `foo::bar` is both an enum and a function
86 --> $DIR/ambiguity.rs:35:43
88 LL | /// Ambiguous non-implied shortcut link [`foo::bar`].
89 | ^^^^^^^^ ambiguous link
91 help: to link to the enum, prefix with `enum@`
93 LL | /// Ambiguous non-implied shortcut link [`enum@foo::bar`].
95 help: to link to the function, add parentheses
97 LL | /// Ambiguous non-implied shortcut link [`foo::bar()`].
100 error: aborting due to 6 previous errors