1 #![deny(non_autolinks)]
3 /// [http://aa.com](http://aa.com)
4 //~^ ERROR unneeded long form for URL
6 //~^ ERROR unneeded long form for URL
8 /// [http://bb.com]: http://bb.com
10 /// [http://c.com][http://c.com]
13 /// https://somewhere.com
14 //~^ ERROR this URL is not a hyperlink
15 /// https://somewhere.com/a
16 //~^ ERROR this URL is not a hyperlink
17 /// https://www.somewhere.com
18 //~^ ERROR this URL is not a hyperlink
19 /// https://www.somewhere.com/a
20 //~^ ERROR this URL is not a hyperlink
21 /// https://subdomain.example.com
22 //~^ ERROR not a hyperlink
23 /// https://somewhere.com?
24 //~^ ERROR this URL is not a hyperlink
25 /// https://somewhere.com/a?
26 //~^ ERROR this URL is not a hyperlink
27 /// https://somewhere.com?hello=12
28 //~^ ERROR this URL is not a hyperlink
29 /// https://somewhere.com/a?hello=12
30 //~^ ERROR this URL is not a hyperlink
31 /// https://example.com?hello=12#xyz
32 //~^ ERROR this URL is not a hyperlink
33 /// https://example.com/a?hello=12#xyz
34 //~^ ERROR this URL is not a hyperlink
35 /// https://example.com#xyz
36 //~^ ERROR this URL is not a hyperlink
37 /// https://example.com/a#xyz
38 //~^ ERROR this URL is not a hyperlink
39 /// https://somewhere.com?hello=12&bye=11
40 //~^ ERROR this URL is not a hyperlink
41 /// https://somewhere.com/a?hello=12&bye=11
42 //~^ ERROR this URL is not a hyperlink
43 /// https://somewhere.com?hello=12&bye=11#xyz
44 //~^ ERROR this URL is not a hyperlink
45 /// hey! https://somewhere.com/a?hello=12&bye=11#xyz
46 //~^ ERROR this URL is not a hyperlink
49 /// <https://somewhere.com>
56 /// This link should not be linted: http://example.com
59 /// [should_not.lint](should_not.lint)
60 pub fn everything_is_fine_here() {}
62 #[allow(non_autolinks)]
64 /// https://somewhere.com/a?hello=12&bye=11#xyz