1 error: incompatible link kind for `S`
2 --> $DIR/intra-links-disambiguator-mismatch.rs:14:14
4 LL | /// Link to [struct@S]
5 | ^^^^^^^^ help: to link to the enum, use its disambiguator: `enum@S`
7 note: the lint level is defined here
8 --> $DIR/intra-links-disambiguator-mismatch.rs:1:9
10 LL | #![deny(broken_intra_doc_links)]
11 | ^^^^^^^^^^^^^^^^^^^^^^
12 = note: this link resolved to an enum, which is not a struct
14 error: incompatible link kind for `S`
15 --> $DIR/intra-links-disambiguator-mismatch.rs:19:14
17 LL | /// Link to [mod@S]
18 | ^^^^^ help: to link to the enum, use its disambiguator: `enum@S`
20 = note: this link resolved to an enum, which is not a module
22 error: incompatible link kind for `S`
23 --> $DIR/intra-links-disambiguator-mismatch.rs:24:14
25 LL | /// Link to [union@S]
26 | ^^^^^^^ help: to link to the enum, use its disambiguator: `enum@S`
28 = note: this link resolved to an enum, which is not a union
30 error: incompatible link kind for `S`
31 --> $DIR/intra-links-disambiguator-mismatch.rs:29:14
33 LL | /// Link to [trait@S]
34 | ^^^^^^^ help: to link to the enum, use its disambiguator: `enum@S`
36 = note: this link resolved to an enum, which is not a trait
38 error: incompatible link kind for `T`
39 --> $DIR/intra-links-disambiguator-mismatch.rs:34:14
41 LL | /// Link to [struct@T]
42 | ^^^^^^^^ help: to link to the trait, use its disambiguator: `trait@T`
44 = note: this link resolved to a trait, which is not a struct
46 error: incompatible link kind for `m`
47 --> $DIR/intra-links-disambiguator-mismatch.rs:39:14
49 LL | /// Link to [derive@m]
50 | ^^^^^^^^ help: to link to the macro, use its disambiguator: `m!`
52 = note: this link resolved to a macro, which is not a derive macro
54 error: incompatible link kind for `s`
55 --> $DIR/intra-links-disambiguator-mismatch.rs:44:14
57 LL | /// Link to [const@s]
58 | ^^^^^^^ help: to link to the static, use its disambiguator: `static@s`
60 = note: this link resolved to a static, which is not a constant
62 error: incompatible link kind for `c`
63 --> $DIR/intra-links-disambiguator-mismatch.rs:49:14
65 LL | /// Link to [static@c]
66 | ^^^^^^^^ help: to link to the constant, use its disambiguator: `const@c`
68 = note: this link resolved to a constant, which is not a static
70 error: incompatible link kind for `c`
71 --> $DIR/intra-links-disambiguator-mismatch.rs:54:14
73 LL | /// Link to [fn@c]
74 | ^^^^ help: to link to the constant, use its disambiguator: `const@c`
76 = note: this link resolved to a constant, which is not a function
78 error: incompatible link kind for `c`
79 --> $DIR/intra-links-disambiguator-mismatch.rs:59:14
81 LL | /// Link to [c()]
82 | ^^^ help: to link to the constant, use its disambiguator: `const@c`
84 = note: this link resolved to a constant, which is not a function
86 error: incompatible link kind for `f`
87 --> $DIR/intra-links-disambiguator-mismatch.rs:64:14
89 LL | /// Link to [const@f]
90 | ^^^^^^^ help: to link to the function, use its disambiguator: `f()`
92 = note: this link resolved to a function, which is not a constant
94 error: aborting due to 11 previous errors