mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-15 01:17:16 +00:00
19 lines
376 B
Rust
19 lines
376 B
Rust
#![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() {}
|