rust-clippy/tests/ui/doc_link_with_quotes.rs

18 lines
236 B
Rust
Raw Normal View History

2022-02-01 11:21:42 +00:00
#![warn(clippy::doc_link_with_quotes)]
fn main() {
foo()
}
/// Calls ['bar'] uselessly
2022-02-01 11:21:42 +00:00
pub fn foo() {
bar()
}
/// # Examples
/// This demonstrates issue \#8961
/// ```
/// let _ = vec!['w', 'a', 't'];
/// ```
2022-02-01 11:21:42 +00:00
pub fn bar() {}