about summary refs log tree commit diff
path: root/tests/rustdoc-ui/lints/bare-urls-limit.rs
blob: f64154b04969838c61f78db0a9a7aadbecf1c2f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ check-fail

#![deny(rustdoc::bare_urls)]

// examples of bare urls that are beyond our ability to generate suggestions for

// this falls through every heuristic in `source_span_for_markdown_range`,
// and thus does not get any suggestion.
#[doc = "good: <https://example.com/> \n\n"]
//~^ ERROR this URL is not a hyperlink
#[doc = "bad: https://example.com/"]
pub fn duplicate_raw() {}