blob: 48e1b1819c6ff2bfaf4ba3665757794c58677efb (
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
25
|
#![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()
}
/// Calls ["bar"] uselessly
//~^ ERROR: possible intra-doc link using quotes instead of backticks
pub fn foo2() {
bar()
}
/// # Examples
/// This demonstrates issue \#8961
/// ```
/// let _ = vec!['w', 'a', 't'];
/// ```
pub fn bar() {}
|