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

21 lines
236 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 ;