2022-02-01 11:21:42 +00:00
|
|
|
#![warn(clippy::doc_link_with_quotes)]
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
foo()
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-01 11:57:34 +02:00
|
|
|
/// Calls ['bar'] uselessly
|
2025-02-11 17:57:08 +01:00
|
|
|
//~^ doc_link_with_quotes
|
2022-02-01 11:21:42 +00:00
|
|
|
pub fn foo() {
|
|
|
|
|
bar()
|
|
|
|
|
}
|
|
|
|
|
|
2023-11-15 22:38:50 +01:00
|
|
|
/// Calls ["bar"] uselessly
|
2025-02-11 17:57:08 +01:00
|
|
|
//~^ doc_link_with_quotes
|
2023-11-15 22:38:50 +01:00
|
|
|
pub fn foo2() {
|
|
|
|
|
bar()
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-01 11:57:34 +02:00
|
|
|
/// # Examples
|
|
|
|
|
/// This demonstrates issue \#8961
|
|
|
|
|
/// ```
|
|
|
|
|
/// let _ = vec!['w', 'a', 't'];
|
|
|
|
|
/// ```
|
2022-02-01 11:21:42 +00:00
|
|
|
pub fn bar() {}
|