rust/tests/source/issue-5234.rs

52 lines
435 B
Rust
Raw Normal View History

// rustfmt-format_code_in_doc_comments: true
/// ```
/// ```
fn foo() {}
/// ```
///Something
/// ```
fn foo() {}
/// ```
///
/// ```
fn foo() {}
/// /// ```
fn foo() {}
/// /// ```
/// ```
///
/// ```
/// ```
fn foo() {}
fn foo() {
/// ```
///
/// ```
struct bar {}
}
/// ```
/// fn com(){
/// let i = 5;
///
/// let j = 6;
/// }
/// ```
fn foo() {}
fn foo() {
/// ```
///fn com(){
///let i = 5;
///}
/// ```
struct bar {}
}