1 error: incompatible link kind for `S`
2 --> $DIR/disambiguator-mismatch.rs:16:14
4 LL | /// Link to [struct@S]
5 | ^^^^^^^^ this link resolved to an enum, which is not a struct
7 note: the lint level is defined here
8 --> $DIR/disambiguator-mismatch.rs:1:9
10 LL | #![deny(rustdoc::broken_intra_doc_links)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 help: to link to the enum, prefix with `enum@`
14 LL | /// Link to [enum@S]
17 error: incompatible link kind for `S`
18 --> $DIR/disambiguator-mismatch.rs:21:14
20 LL | /// Link to [mod@S]
21 | ^^^^^ this link resolved to an enum, which is not a module
23 help: to link to the enum, prefix with `enum@`
25 LL | /// Link to [enum@S]
28 error: incompatible link kind for `S`
29 --> $DIR/disambiguator-mismatch.rs:26:14
31 LL | /// Link to [union@S]
32 | ^^^^^^^ this link resolved to an enum, which is not a union
34 help: to link to the enum, prefix with `enum@`
36 LL | /// Link to [enum@S]
39 error: incompatible link kind for `S`
40 --> $DIR/disambiguator-mismatch.rs:31:14
42 LL | /// Link to [trait@S]
43 | ^^^^^^^ this link resolved to an enum, which is not a trait
45 help: to link to the enum, prefix with `enum@`
47 LL | /// Link to [enum@S]
50 error: incompatible link kind for `T`
51 --> $DIR/disambiguator-mismatch.rs:36:14
53 LL | /// Link to [struct@T]
54 | ^^^^^^^^ this link resolved to a trait, which is not a struct
56 help: to link to the trait, prefix with `trait@`
58 LL | /// Link to [trait@T]
61 error: incompatible link kind for `m`
62 --> $DIR/disambiguator-mismatch.rs:41:14
64 LL | /// Link to [derive@m]
65 | ^^^^^^^^ this link resolved to a macro, which is not a derive macro
67 help: to link to the macro, add an exclamation mark
69 LL - /// Link to [derive@m]
73 error: unresolved link to `m`
74 --> $DIR/disambiguator-mismatch.rs:46:14
76 LL | /// Link to [m()]
77 | ^^^ this link resolves to the macro `m`, which is not in the value namespace
79 help: to link to the macro, add an exclamation mark
81 LL | /// Link to [m!()]
84 error: incompatible link kind for `s`
85 --> $DIR/disambiguator-mismatch.rs:52:14
87 LL | /// Link to [const@s]
88 | ^^^^^^^ this link resolved to a static, which is not a constant
90 help: to link to the static, prefix with `static@`
92 LL | /// Link to [static@s]
95 error: incompatible link kind for `c`
96 --> $DIR/disambiguator-mismatch.rs:57:14
98 LL | /// Link to [static@c]
99 | ^^^^^^^^ this link resolved to a constant, which is not a static
101 help: to link to the constant, prefix with `const@`
103 LL | /// Link to [const@c]
106 error: incompatible link kind for `c`
107 --> $DIR/disambiguator-mismatch.rs:62:14
109 LL | /// Link to [fn@c]
110 | ^^^^ this link resolved to a constant, which is not a function
112 help: to link to the constant, prefix with `const@`
114 LL | /// Link to [const@c]
117 error: incompatible link kind for `c`
118 --> $DIR/disambiguator-mismatch.rs:67:14
120 LL | /// Link to [c()]
121 | ^^^ this link resolved to a constant, which is not a function
123 help: to link to the constant, prefix with `const@`
125 LL - /// Link to [c()]
126 LL + /// Link to [const@c]
129 error: incompatible link kind for `f`
130 --> $DIR/disambiguator-mismatch.rs:72:14
132 LL | /// Link to [const@f]
133 | ^^^^^^^ this link resolved to a function, which is not a constant
135 help: to link to the function, add parentheses
137 LL - /// Link to [const@f]
138 LL + /// Link to [f()]
141 error: aborting due to 12 previous errors