3 #![deny(rustdoc::redundant_explicit_links)]
5 pub fn dummy_target() {}
8 //~^ ERROR redundant explicit link target
10 //~^ ERROR redundant explicit link target
13 //~^ ERROR redundant explicit link target
15 //~^ ERROR redundant explicit link target
17 //~^ ERROR redundant explicit link target
19 //~^ ERROR redundant explicit link target
21 //~^ ERROR redundant explicit link target
23 //~^ ERROR redundant explicit link target
25 //~^ ERROR redundant explicit link target
27 //~^ ERROR redundant explicit link target
30 //~^ ERROR redundant explicit link target
32 //~^ ERROR redundant explicit link target
34 //~^ ERROR redundant explicit link target
36 //~^ ERROR redundant explicit link target
37 /// [std::primitive::usize]
38 //~^ ERROR redundant explicit link target
39 /// [`std::primitive::usize`]
40 //~^ ERROR redundant explicit link target
41 /// [std::primitive::usize]
42 //~^ ERROR redundant explicit link target
43 /// [`std::primitive::usize`]
44 //~^ ERROR redundant explicit link target
46 /// [dummy_target] TEXT
47 //~^ ERROR redundant explicit link target
48 /// [`dummy_target`] TEXT
49 //~^ ERROR redundant explicit link target
50 pub fn should_warn_inline() {}
53 /// [`Vec<T>`](std::vec::Vec)
54 pub fn should_not_warn_inline() {}
57 //~^ ERROR redundant explicit link target
59 //~^ ERROR redundant explicit link target
62 //~^ ERROR redundant explicit link target
64 //~^ ERROR redundant explicit link target
66 //~^ ERROR redundant explicit link target
68 //~^ ERROR redundant explicit link target
70 //~^ ERROR redundant explicit link target
72 //~^ ERROR redundant explicit link target
74 //~^ ERROR redundant explicit link target
76 //~^ ERROR redundant explicit link target
79 //~^ ERROR redundant explicit link target
81 //~^ ERROR redundant explicit link target
83 //~^ ERROR redundant explicit link target
85 //~^ ERROR redundant explicit link target
86 /// [std::primitive::usize]
87 //~^ ERROR redundant explicit link target
88 /// [`std::primitive::usize`]
89 //~^ ERROR redundant explicit link target
90 /// [std::primitive::usize]
91 //~^ ERROR redundant explicit link target
92 /// [`std::primitive::usize`]
93 //~^ ERROR redundant explicit link target
95 /// [dummy_target] TEXT
96 //~^ ERROR redundant explicit link target
97 /// [`dummy_target`] TEXT
98 //~^ ERROR redundant explicit link target
99 pub fn should_warn_reference_unknown() {}
102 /// [`Vec<T>`][std::vec::Vec]
103 pub fn should_not_warn_reference_unknown() {}
106 //~^ ERROR redundant explicit link target
108 //~^ ERROR redundant explicit link target
111 //~^ ERROR redundant explicit link target
113 //~^ ERROR redundant explicit link target
115 //~^ ERROR redundant explicit link target
117 //~^ ERROR redundant explicit link target
119 //~^ ERROR redundant explicit link target
120 /// [`std::vec::Vec`]
121 //~^ ERROR redundant explicit link target
123 //~^ ERROR redundant explicit link target
124 /// [`std::vec::Vec`]
125 //~^ ERROR redundant explicit link target
128 //~^ ERROR redundant explicit link target
130 //~^ ERROR redundant explicit link target
132 //~^ ERROR redundant explicit link target
134 //~^ ERROR redundant explicit link target
135 /// [std::primitive::usize]
136 //~^ ERROR redundant explicit link target
137 /// [`std::primitive::usize`]
138 //~^ ERROR redundant explicit link target
139 /// [std::primitive::usize]
140 //~^ ERROR redundant explicit link target
141 /// [`std::primitive::usize`]
142 //~^ ERROR redundant explicit link target
144 /// [dummy_target] TEXT
145 //~^ ERROR redundant explicit link target
146 /// [`dummy_target`] TEXT
147 //~^ ERROR redundant explicit link target
149 /// [dummy_target]: dummy_target
151 /// [std::vec::Vec]: Vec
153 /// [std::primitive::usize]: usize
154 pub fn should_warn_reference() {}
157 /// [`Vec<T>`]: std::vec::Vec
158 pub fn should_not_warn_reference() {}