File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ #![ deny( automatic_links) ]
2+
3+ /// [http://a.com](http://a.com)
4+ //~^ ERROR Unneeded long form for URL
5+ /// [http://b.com]
6+ //~^ ERROR Unneeded long form for URL
7+ ///
8+ /// [http://b.com]: http://b.com
9+ ///
10+ /// [http://c.com][http://c.com]
11+ pub fn a ( ) { }
12+
13+ /// [a](http://a.com)
14+ /// [b]
15+ ///
16+ /// [b]: http://b.com
17+ pub fn everything_is_fine_here ( ) { }
Original file line number Diff line number Diff line change 1+ error: Unneeded long form for URL
2+ --> $DIR/automatic-links.rs:3:5
3+ |
4+ LL | /// [http://a.com](http://a.com)
5+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6+ |
7+ note: the lint level is defined here
8+ --> $DIR/automatic-links.rs:1:9
9+ |
10+ LL | #![deny(automatic_links)]
11+ | ^^^^^^^^^^^^^^^
12+ = help: Try with `<http://a.com>` instead
13+
14+ error: Unneeded long form for URL
15+ --> $DIR/automatic-links.rs:5:5
16+ |
17+ LL | /// [http://b.com]
18+ | ^^^^^^^^^^^^^^
19+ |
20+ = help: Try with `<http://b.com>` instead
21+
22+ error: aborting due to 2 previous errors
23+
You can’t perform that action at this time.
0 commit comments