summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/invalid-rust-code-in-doc-comment.rs
blob: 835b0261b760b0ae8175c3d8481a0d251fb7cb3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// rustfmt-format_code_in_doc_comments: true

/// ```rust
/// if (true) { … }
/// ```
fn a() {
}

/// ```rust
/// if foo() {
///     …
/// }
/// ```
fn a() {
}

/// ```rust
/// k1 == k2 ⇒ hash(k1) == hash(k2)
/// ```
pub   struct   a   ;