rust/tests/source/invalid-rust-code-in-doc-comment.rs

21 lines
236 B
Rust
Raw Normal View History

// 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 ;