]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/intra-doc/ambiguity.stderr
Merge commit 'c4416f20dcaec5d93077f72470e83e150fb923b1' into sync-rustfmt
[rust.git] / src / test / rustdoc-ui / intra-doc / ambiguity.stderr
1 error: `true` is both a module and a builtin type
2   --> $DIR/ambiguity.rs:38:6
3    |
4 LL | /// [true]
5    |      ^^^^ ambiguous link
6    |
7 note: the lint level is defined here
8   --> $DIR/ambiguity.rs:1:9
9    |
10 LL | #![deny(rustdoc::broken_intra_doc_links)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 help: to link to the module, prefix with `mod@`
13    |
14 LL | /// [mod@true]
15    |      ++++
16 help: to link to the builtin type, prefix with `prim@`
17    |
18 LL | /// [prim@true]
19    |      +++++
20
21 error: `ambiguous` is both a struct and a function
22   --> $DIR/ambiguity.rs:27:7
23    |
24 LL | /// [`ambiguous`] is ambiguous.
25    |       ^^^^^^^^^ ambiguous link
26    |
27 help: to link to the struct, prefix with `struct@`
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: `ambiguous` is both a struct and a function
37   --> $DIR/ambiguity.rs:29:6
38    |
39 LL | /// [ambiguous] is ambiguous.
40    |      ^^^^^^^^^ ambiguous link
41    |
42 help: to link to the struct, prefix with `struct@`
43    |
44 LL | /// [struct@ambiguous] is ambiguous.
45    |      +++++++
46 help: to link to the function, add parentheses
47    |
48 LL | /// [ambiguous()] is ambiguous.
49    |               ++
50
51 error: `multi_conflict` is a struct, a function, and a macro
52   --> $DIR/ambiguity.rs:31:7
53    |
54 LL | /// [`multi_conflict`] is a three-way conflict.
55    |       ^^^^^^^^^^^^^^ ambiguous link
56    |
57 help: to link to the struct, prefix with `struct@`
58    |
59 LL | /// [`struct@multi_conflict`] is a three-way conflict.
60    |       +++++++
61 help: to link to the function, add parentheses
62    |
63 LL | /// [`multi_conflict()`] is a three-way conflict.
64    |                     ++
65 help: to link to the macro, add an exclamation mark
66    |
67 LL | /// [`multi_conflict!`] is a three-way conflict.
68    |                     +
69
70 error: `type_and_value` is both a module and a constant
71   --> $DIR/ambiguity.rs:33:16
72    |
73 LL | /// Ambiguous [type_and_value].
74    |                ^^^^^^^^^^^^^^ ambiguous link
75    |
76 help: to link to the module, prefix with `mod@`
77    |
78 LL | /// Ambiguous [mod@type_and_value].
79    |                ++++
80 help: to link to the constant, prefix with `const@`
81    |
82 LL | /// Ambiguous [const@type_and_value].
83    |                ++++++
84
85 error: `foo::bar` is both an enum and a function
86   --> $DIR/ambiguity.rs:35:43
87    |
88 LL | /// Ambiguous non-implied shortcut link [`foo::bar`].
89    |                                           ^^^^^^^^ ambiguous link
90    |
91 help: to link to the enum, prefix with `enum@`
92    |
93 LL | /// Ambiguous non-implied shortcut link [`enum@foo::bar`].
94    |                                           +++++
95 help: to link to the function, add parentheses
96    |
97 LL | /// Ambiguous non-implied shortcut link [`foo::bar()`].
98    |                                                   ++
99
100 error: aborting due to 6 previous errors
101