]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/intra-doc/disambiguator-mismatch.stderr
Rollup merge of #98207 - arlosi:update-cargo, r=Dylan-DPC
[rust.git] / src / test / rustdoc-ui / intra-doc / disambiguator-mismatch.stderr
1 error: incompatible link kind for `S`
2   --> $DIR/disambiguator-mismatch.rs:16:14
3    |
4 LL | /// Link to [struct@S]
5    |              ^^^^^^^^ this link resolved to an enum, which is not a struct
6    |
7 note: the lint level is defined here
8   --> $DIR/disambiguator-mismatch.rs:1:9
9    |
10 LL | #![deny(rustdoc::broken_intra_doc_links)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 help: to link to the enum, prefix with `enum@`
13    |
14 LL | /// Link to [enum@S]
15    |              ~~~~~
16
17 error: incompatible link kind for `S`
18   --> $DIR/disambiguator-mismatch.rs:21:14
19    |
20 LL | /// Link to [mod@S]
21    |              ^^^^^ this link resolved to an enum, which is not a module
22    |
23 help: to link to the enum, prefix with `enum@`
24    |
25 LL | /// Link to [enum@S]
26    |              ~~~~~
27
28 error: incompatible link kind for `S`
29   --> $DIR/disambiguator-mismatch.rs:26:14
30    |
31 LL | /// Link to [union@S]
32    |              ^^^^^^^ this link resolved to an enum, which is not a union
33    |
34 help: to link to the enum, prefix with `enum@`
35    |
36 LL | /// Link to [enum@S]
37    |              ~~~~~
38
39 error: incompatible link kind for `S`
40   --> $DIR/disambiguator-mismatch.rs:31:14
41    |
42 LL | /// Link to [trait@S]
43    |              ^^^^^^^ this link resolved to an enum, which is not a trait
44    |
45 help: to link to the enum, prefix with `enum@`
46    |
47 LL | /// Link to [enum@S]
48    |              ~~~~~
49
50 error: incompatible link kind for `T`
51   --> $DIR/disambiguator-mismatch.rs:36:14
52    |
53 LL | /// Link to [struct@T]
54    |              ^^^^^^^^ this link resolved to a trait, which is not a struct
55    |
56 help: to link to the trait, prefix with `trait@`
57    |
58 LL | /// Link to [trait@T]
59    |              ~~~~~~
60
61 error: incompatible link kind for `m`
62   --> $DIR/disambiguator-mismatch.rs:41:14
63    |
64 LL | /// Link to [derive@m]
65    |              ^^^^^^^^ this link resolved to a macro, which is not a derive macro
66    |
67 help: to link to the macro, add an exclamation mark
68    |
69 LL - /// Link to [derive@m]
70 LL + /// Link to [m!]
71    |
72
73 error: unresolved link to `m`
74   --> $DIR/disambiguator-mismatch.rs:46:14
75    |
76 LL | /// Link to [m()]
77    |              ^^^ this link resolves to the macro `m`, which is not in the value namespace
78    |
79 help: to link to the macro, add an exclamation mark
80    |
81 LL | /// Link to [m!()]
82    |               +
83
84 error: incompatible link kind for `s`
85   --> $DIR/disambiguator-mismatch.rs:52:14
86    |
87 LL | /// Link to [const@s]
88    |              ^^^^^^^ this link resolved to a static, which is not a constant
89    |
90 help: to link to the static, prefix with `static@`
91    |
92 LL | /// Link to [static@s]
93    |              ~~~~~~~
94
95 error: incompatible link kind for `c`
96   --> $DIR/disambiguator-mismatch.rs:57:14
97    |
98 LL | /// Link to [static@c]
99    |              ^^^^^^^^ this link resolved to a constant, which is not a static
100    |
101 help: to link to the constant, prefix with `const@`
102    |
103 LL | /// Link to [const@c]
104    |              ~~~~~~
105
106 error: incompatible link kind for `c`
107   --> $DIR/disambiguator-mismatch.rs:62:14
108    |
109 LL | /// Link to [fn@c]
110    |              ^^^^ this link resolved to a constant, which is not a function
111    |
112 help: to link to the constant, prefix with `const@`
113    |
114 LL | /// Link to [const@c]
115    |              ~~~~~~
116
117 error: incompatible link kind for `c`
118   --> $DIR/disambiguator-mismatch.rs:67:14
119    |
120 LL | /// Link to [c()]
121    |              ^^^ this link resolved to a constant, which is not a function
122    |
123 help: to link to the constant, prefix with `const@`
124    |
125 LL - /// Link to [c()]
126 LL + /// Link to [const@c]
127    |
128
129 error: incompatible link kind for `f`
130   --> $DIR/disambiguator-mismatch.rs:72:14
131    |
132 LL | /// Link to [const@f]
133    |              ^^^^^^^ this link resolved to a function, which is not a constant
134    |
135 help: to link to the function, add parentheses
136    |
137 LL - /// Link to [const@f]
138 LL + /// Link to [f()]
139    |
140
141 error: unresolved link to `std`
142   --> $DIR/disambiguator-mismatch.rs:77:14
143    |
144 LL | /// Link to [fn@std]
145    |              ^^^^^^ this link resolves to the crate `std`, which is not in the value namespace
146    |
147 help: to link to the crate, prefix with `mod@`
148    |
149 LL | /// Link to [mod@std]
150    |              ~~~~
151
152 error: aborting due to 13 previous errors
153