2020-10-12 18:29:56 +02:00
|
|
|
#![deny(automatic_links)]
|
|
|
|
|
|
|
|
/// [http://a.com](http://a.com)
|
2020-10-13 15:46:34 +02:00
|
|
|
//~^ ERROR unneeded long form for URL
|
2020-10-12 18:29:56 +02:00
|
|
|
/// [http://b.com]
|
2020-10-13 15:46:34 +02:00
|
|
|
//~^ ERROR unneeded long form for URL
|
2020-10-12 18:29:56 +02:00
|
|
|
///
|
|
|
|
/// [http://b.com]: http://b.com
|
|
|
|
///
|
|
|
|
/// [http://c.com][http://c.com]
|
|
|
|
pub fn a() {}
|
|
|
|
|
2020-10-13 15:46:34 +02:00
|
|
|
/// https://somewhere.com?hello=12
|
|
|
|
//~^ ERROR won't be a link as is
|
|
|
|
pub fn c() {}
|
|
|
|
|
|
|
|
/// <https://somewhere.com>
|
2020-10-12 18:29:56 +02:00
|
|
|
/// [a](http://a.com)
|
|
|
|
/// [b]
|
|
|
|
///
|
|
|
|
/// [b]: http://b.com
|
|
|
|
pub fn everything_is_fine_here() {}
|