]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/intra-links-ambiguity.stderr
3506e7f29c413a5c580519f91f0815c126b41fdc
[rust.git] / src / test / rustdoc-ui / intra-links-ambiguity.stderr
1 error: `ambiguous` is both a struct and a function
2   --> $DIR/intra-links-ambiguity.rs:27:6
3    |
4 LL | /// [`ambiguous`] is ambiguous.
5    |      ^^^^^^^^^^^ ambiguous link
6    |
7 note: lint level defined here
8   --> $DIR/intra-links-ambiguity.rs:1:9
9    |
10 LL | #![deny(intra_doc_link_resolution_failure)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 help: to link to the struct, prefix with the item type
13    |
14 LL | /// [`struct@ambiguous`] is ambiguous.
15    |      ^^^^^^^^^^^^^^^^^^
16 help: to link to the function, add parentheses
17    |
18 LL | /// [`ambiguous()`] is ambiguous.
19    |      ^^^^^^^^^^^^^
20
21 error: `ambiguous` is both a struct and a function
22   --> $DIR/intra-links-ambiguity.rs:29:6
23    |
24 LL | /// [ambiguous] is ambiguous.
25    |      ^^^^^^^^^ ambiguous link
26 help: to link to the struct, prefix with the item type
27    |
28 LL | /// [struct@ambiguous] is ambiguous.
29    |      ^^^^^^^^^^^^^^^^
30 help: to link to the function, add parentheses
31    |
32 LL | /// [ambiguous()] is ambiguous.
33    |      ^^^^^^^^^^^
34
35 error: `multi_conflict` is a macro, a struct, and a function
36   --> $DIR/intra-links-ambiguity.rs:31:6
37    |
38 LL | /// [`multi_conflict`] is a three-way conflict.
39    |      ^^^^^^^^^^^^^^^^ ambiguous link
40 help: to link to the macro, prefix with the item type
41    |
42 LL | /// [`macro@multi_conflict`] is a three-way conflict.
43    |      ^^^^^^^^^^^^^^^^^^^^^^
44 help: to link to the struct, prefix with the item type
45    |
46 LL | /// [`struct@multi_conflict`] is a three-way conflict.
47    |      ^^^^^^^^^^^^^^^^^^^^^^^
48 help: to link to the function, add parentheses
49    |
50 LL | /// [`multi_conflict()`] is a three-way conflict.
51    |      ^^^^^^^^^^^^^^^^^^
52
53 error: `type_and_value` is both a module and a constant
54   --> $DIR/intra-links-ambiguity.rs:33:16
55    |
56 LL | /// Ambiguous [type_and_value].
57    |                ^^^^^^^^^^^^^^ ambiguous link
58 help: to link to the module, prefix with the item type
59    |
60 LL | /// Ambiguous [module@type_and_value].
61    |                ^^^^^^^^^^^^^^^^^^^^^
62 help: to link to the constant, prefix with the item type
63    |
64 LL | /// Ambiguous [const@type_and_value].
65    |                ^^^^^^^^^^^^^^^^^^^^
66
67 error: `foo::bar` is both an enum and a function
68   --> $DIR/intra-links-ambiguity.rs:35:42
69    |
70 LL | /// Ambiguous non-implied shortcut link [`foo::bar`].
71    |                                          ^^^^^^^^^^ ambiguous link
72 help: to link to the enum, prefix with the item type
73    |
74 LL | /// Ambiguous non-implied shortcut link [`enum@foo::bar`].
75    |                                          ^^^^^^^^^^^^^^^
76 help: to link to the function, add parentheses
77    |
78 LL | /// Ambiguous non-implied shortcut link [`foo::bar()`].
79    |                                          ^^^^^^^^^^^^
80
81 error: aborting due to 5 previous errors
82