rust/tests/target/invalid-rust-code-in-doc-comment.rs
2018-10-17 14:21:04 +09:00

19 lines
227 B
Rust

// rustfmt-format_doc_comments: true
/// ```rust
/// if (true) { … }
/// ```
fn a() {}
/// ```rust
/// if foo() {
/// …
/// }
/// ```
fn a() {}
/// ```rust
/// k1 == k2 ⇒ hash(k1) == hash(k2)
/// ```
pub struct a;