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: lint level 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
26 help: to link to the struct, prefix with the item type
28 LL | /// [struct@ambiguous] is ambiguous.
30 help: to link to the function, add parentheses
32 LL | /// [ambiguous()] is ambiguous.
35 error: `multi_conflict` is a macro, a struct, and a function
36 --> $DIR/intra-links-ambiguity.rs:31:6
38 LL | /// [`multi_conflict`] is a three-way conflict.
39 | ^^^^^^^^^^^^^^^^ ambiguous link
40 help: to link to the macro, prefix with the item type
42 LL | /// [`macro@multi_conflict`] is a three-way conflict.
43 | ^^^^^^^^^^^^^^^^^^^^^^
44 help: to link to the struct, prefix with the item type
46 LL | /// [`struct@multi_conflict`] is a three-way conflict.
47 | ^^^^^^^^^^^^^^^^^^^^^^^
48 help: to link to the function, add parentheses
50 LL | /// [`multi_conflict()`] is a three-way conflict.
53 error: `type_and_value` is both a module and a constant
54 --> $DIR/intra-links-ambiguity.rs:33:16
56 LL | /// Ambiguous [type_and_value].
57 | ^^^^^^^^^^^^^^ ambiguous link
58 help: to link to the module, prefix with the item type
60 LL | /// Ambiguous [module@type_and_value].
61 | ^^^^^^^^^^^^^^^^^^^^^
62 help: to link to the constant, prefix with the item type
64 LL | /// Ambiguous [const@type_and_value].
65 | ^^^^^^^^^^^^^^^^^^^^
67 error: `foo::bar` is both an enum and a function
68 --> $DIR/intra-links-ambiguity.rs:35:42
70 LL | /// Ambiguous non-implied shortcut link [`foo::bar`].
71 | ^^^^^^^^^^ ambiguous link
72 help: to link to the enum, prefix with the item type
74 LL | /// Ambiguous non-implied shortcut link [`enum@foo::bar`].
76 help: to link to the function, add parentheses
78 LL | /// Ambiguous non-implied shortcut link [`foo::bar()`].
81 error: aborting due to 5 previous errors