]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/intra-links-ambiguity.stderr
Auto merge of #68376 - Centril:move-ref-patterns, r=matthewjasper
[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: the lint level is 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    |
27 help: to link to the struct, prefix with the item type
28    |
29 LL | /// [struct@ambiguous] is ambiguous.
30    |      ^^^^^^^^^^^^^^^^
31 help: to link to the function, add parentheses
32    |
33 LL | /// [ambiguous()] is ambiguous.
34    |      ^^^^^^^^^^^
35
36 error: `multi_conflict` is a struct, a function, and a macro
37   --> $DIR/intra-links-ambiguity.rs:31:6
38    |
39 LL | /// [`multi_conflict`] is a three-way conflict.
40    |      ^^^^^^^^^^^^^^^^ ambiguous link
41    |
42 help: to link to the struct, prefix with the item type
43    |
44 LL | /// [`struct@multi_conflict`] is a three-way conflict.
45    |      ^^^^^^^^^^^^^^^^^^^^^^^
46 help: to link to the function, add parentheses
47    |
48 LL | /// [`multi_conflict()`] is a three-way conflict.
49    |      ^^^^^^^^^^^^^^^^^^
50 help: to link to the macro, add an exclamation mark
51    |
52 LL | /// [`multi_conflict!`] is a three-way conflict.
53    |      ^^^^^^^^^^^^^^^^^
54
55 error: `type_and_value` is both a module and a constant
56   --> $DIR/intra-links-ambiguity.rs:33:16
57    |
58 LL | /// Ambiguous [type_and_value].
59    |                ^^^^^^^^^^^^^^ ambiguous link
60    |
61 help: to link to the module, prefix with the item type
62    |
63 LL | /// Ambiguous [module@type_and_value].
64    |                ^^^^^^^^^^^^^^^^^^^^^
65 help: to link to the constant, prefix with the item type
66    |
67 LL | /// Ambiguous [const@type_and_value].
68    |                ^^^^^^^^^^^^^^^^^^^^
69
70 error: `foo::bar` is both an enum and a function
71   --> $DIR/intra-links-ambiguity.rs:35:42
72    |
73 LL | /// Ambiguous non-implied shortcut link [`foo::bar`].
74    |                                          ^^^^^^^^^^ ambiguous link
75    |
76 help: to link to the enum, prefix with the item type
77    |
78 LL | /// Ambiguous non-implied shortcut link [`enum@foo::bar`].
79    |                                          ^^^^^^^^^^^^^^^
80 help: to link to the function, add parentheses
81    |
82 LL | /// Ambiguous non-implied shortcut link [`foo::bar()`].
83    |                                          ^^^^^^^^^^^^
84
85 error: aborting due to 5 previous errors
86