about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/doc_link_with_quotes.rs
blob: 0c0e273da6db4105afdf94832ae60954d699301c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#![warn(clippy::doc_link_with_quotes)]

fn main() {
    foo()
}

/// Calls ['bar'] uselessly
//~^ doc_link_with_quotes
pub fn foo() {
    bar()
}

/// Calls ["bar"] uselessly
//~^ doc_link_with_quotes
pub fn foo2() {
    bar()
}

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