fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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