]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/invalid-rust-code-in-doc-comment.rs
Merge commit 'e36a20c24f35a4cee82bbdc600289104c9237c22' into ra-sync-and-pms-component
[rust.git] / src / tools / rustfmt / tests / target / 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 /// ```rust
9 /// if foo() {
10 ///     …
11 /// }
12 /// ```
13 fn a() {}
14
15 /// ```rust
16 /// k1 == k2 ⇒ hash(k1) == hash(k2)
17 /// ```
18 pub struct a;