1 #![deny(rustdoc::broken_intra_doc_links)]
2 //~^ NOTE lint level is defined
16 /// Link to [struct@S]
17 //~^ ERROR incompatible link kind for `S`
18 //~| NOTE this link resolved
19 //~| HELP prefix with `enum@`
22 //~^ ERROR incompatible link kind for `S`
23 //~| NOTE this link resolved
24 //~| HELP prefix with `enum@`
27 //~^ ERROR incompatible link kind for `S`
28 //~| NOTE this link resolved
29 //~| HELP prefix with `enum@`
32 //~^ ERROR incompatible link kind for `S`
33 //~| NOTE this link resolved
34 //~| HELP prefix with `enum@`
36 /// Link to [struct@T]
37 //~^ ERROR incompatible link kind for `T`
38 //~| NOTE this link resolved
39 //~| HELP prefix with `trait@`
41 /// Link to [derive@m]
42 //~^ ERROR incompatible link kind for `m`
43 //~| NOTE this link resolved
44 //~| HELP add an exclamation mark
47 //~^ ERROR unresolved link to `m`
48 //~| NOTE this link resolves to the macro `m`
49 //~| HELP add an exclamation mark
53 //~^ ERROR incompatible link kind for `s`
54 //~| NOTE this link resolved
55 //~| HELP prefix with `static@`
57 /// Link to [static@c]
58 //~^ ERROR incompatible link kind for `c`
59 //~| NOTE this link resolved
60 //~| HELP prefix with `const@`
63 //~^ ERROR incompatible link kind for `c`
64 //~| NOTE this link resolved
65 //~| HELP prefix with `const@`
68 //~^ ERROR incompatible link kind for `c`
69 //~| NOTE this link resolved
70 //~| HELP prefix with `const@`
73 //~^ ERROR incompatible link kind for `f`
74 //~| NOTE this link resolved
75 //~| HELP add parentheses
78 //~^ ERROR unresolved link to `std`
79 //~| NOTE this link resolves to the crate `std`
80 //~| HELP to link to the crate, prefix with `mod@`