summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/invalid-rust-code-in-doc-comment.rs
blob: f8479d4e34514b1fb34895b31d487077fcff1764 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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;