2022-06-04 11:34:07 +00:00
|
|
|
#![warn(clippy::doc_link_with_quotes)]
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
foo()
|
|
|
|
}
|
|
|
|
|
2022-10-06 07:44:38 +00:00
|
|
|
/// Calls ['bar'] uselessly
|
2023-08-24 19:32:12 +00:00
|
|
|
//~^ ERROR: possible intra-doc link using quotes instead of backticks
|
|
|
|
//~| NOTE: `-D clippy::doc-link-with-quotes` implied by `-D warnings`
|
2022-06-04 11:34:07 +00:00
|
|
|
pub fn foo() {
|
|
|
|
bar()
|
|
|
|
}
|
|
|
|
|
2023-12-01 17:21:58 +00:00
|
|
|
/// Calls ["bar"] uselessly
|
|
|
|
//~^ ERROR: possible intra-doc link using quotes instead of backticks
|
|
|
|
pub fn foo2() {
|
|
|
|
bar()
|
|
|
|
}
|
|
|
|
|
2022-10-06 07:44:38 +00:00
|
|
|
/// # Examples
|
|
|
|
/// This demonstrates issue \#8961
|
|
|
|
/// ```
|
|
|
|
/// let _ = vec!['w', 'a', 't'];
|
|
|
|
/// ```
|
2022-06-04 11:34:07 +00:00
|
|
|
pub fn bar() {}
|