]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/doc_link_with_quotes.rs
Rollup merge of #102072 - scottmcm:ptr-alignment-type, r=thomcc
[rust.git] / src / tools / clippy / tests / ui / doc_link_with_quotes.rs
1 #![warn(clippy::doc_link_with_quotes)]
2
3 fn main() {
4     foo()
5 }
6
7 /// Calls ['bar'] uselessly
8 pub fn foo() {
9     bar()
10 }
11
12 /// # Examples
13 /// This demonstrates issue \#8961
14 /// ```
15 /// let _ = vec!['w', 'a', 't'];
16 /// ```
17 pub fn bar() {}