summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/doc_link_with_quotes.rs
blob: 37d0d135957370984e32952223cd498848773730 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#![warn(clippy::doc_link_with_quotes)]

fn main() {
    foo()
}

/// Calls ['bar'] uselessly
//~^ ERROR: possible intra-doc link using quotes instead of backticks
//~| NOTE: `-D clippy::doc-link-with-quotes` implied by `-D warnings`
pub fn foo() {
    bar()
}

/// # Examples
/// This demonstrates issue \#8961
/// ```
/// let _ = vec!['w', 'a', 't'];
/// ```
pub fn bar() {}