]> git.lizzy.rs Git - rust.git/blob - tests/source/invalid-rust-code-in-doc-comment.rs
Add tests for binop_separator = Back
[rust.git] / tests / source / invalid-rust-code-in-doc-comment.rs
1 // rustfmt-format_code_in_doc_comments: true
2
3 /// ```rust
4 /// if (true) { … }
5 /// ```
6 fn a() {
7 }
8
9 /// ```rust
10 /// if foo() {
11 ///     …
12 /// }
13 /// ```
14 fn a() {
15 }
16
17 /// ```rust
18 /// k1 == k2 ⇒ hash(k1) == hash(k2)
19 /// ```
20 pub   struct   a   ;