1 error: `ambiguous` is both a struct and a function
2 --> $DIR/intra-links-ambiguity.rs:27:6
4 LL | /// [`ambiguous`] is ambiguous.
5 | ^^^^^^^^^^^ ambiguous link
7 note: the lint level is defined here
8 --> $DIR/intra-links-ambiguity.rs:1:9
10 LL | #![deny(intra_doc_link_resolution_failure)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 help: to link to the struct, prefix with the item type
14 LL | /// [`struct@ambiguous`] is ambiguous.
16 help: to link to the function, add parentheses
18 LL | /// [`ambiguous()`] is ambiguous.
21 error: `ambiguous` is both a struct and a function
22 --> $DIR/intra-links-ambiguity.rs:29:6
24 LL | /// [ambiguous] is ambiguous.
25 | ^^^^^^^^^ ambiguous link
27 help: to link to the struct, prefix with the item type
29 LL | /// [struct@ambiguous] is ambiguous.
31 help: to link to the function, add parentheses
33 LL | /// [ambiguous()] is ambiguous.
36 error: `multi_conflict` is a struct, a function, and a macro
37 --> $DIR/intra-links-ambiguity.rs:31:6
39 LL | /// [`multi_conflict`] is a three-way conflict.
40 | ^^^^^^^^^^^^^^^^ ambiguous link
42 help: to link to the struct, prefix with the item type
44 LL | /// [`struct@multi_conflict`] is a three-way conflict.
45 | ^^^^^^^^^^^^^^^^^^^^^^^
46 help: to link to the function, add parentheses
48 LL | /// [`multi_conflict()`] is a three-way conflict.
50 help: to link to the macro, add an exclamation mark
52 LL | /// [`multi_conflict!`] is a three-way conflict.
55 error: `type_and_value` is both a module and a constant
56 --> $DIR/intra-links-ambiguity.rs:33:16
58 LL | /// Ambiguous [type_and_value].
59 | ^^^^^^^^^^^^^^ ambiguous link
61 help: to link to the module, prefix with the item type
63 LL | /// Ambiguous [module@type_and_value].
64 | ^^^^^^^^^^^^^^^^^^^^^
65 help: to link to the constant, prefix with the item type
67 LL | /// Ambiguous [const@type_and_value].
68 | ^^^^^^^^^^^^^^^^^^^^
70 error: `foo::bar` is both an enum and a function
71 --> $DIR/intra-links-ambiguity.rs:35:42
73 LL | /// Ambiguous non-implied shortcut link [`foo::bar`].
74 | ^^^^^^^^^^ ambiguous link
76 help: to link to the enum, prefix with the item type
78 LL | /// Ambiguous non-implied shortcut link [`enum@foo::bar`].
80 help: to link to the function, add parentheses
82 LL | /// Ambiguous non-implied shortcut link [`foo::bar()`].
85 error: aborting due to 5 previous errors