rust/tests/source/issue-2523.rs
xiongmao86 a956a20532 Revert "Revert "Change config option from format_doc_comments to format_code_in_doc_comments.""
This reverts commit 97d7216cd4ebce511d5707ec5dd8b7b8fe771cba.
2019-05-10 21:22:52 +08:00

19 lines
439 B
Rust

// rustfmt-normalize_comments: true
// rustfmt-format_code_in_doc_comments: true
// Do not unindent macro calls in comment with unformattable syntax.
//! ```rust
//! let x = 3 ;
//! some_macro!(pub fn fn foo() (
//! println!("Don't unindent me!");
//! ));
//! ```
// Format items that appear as arguments of macro call.
//! ```rust
//! let x = 3 ;
//! some_macro!(pub fn foo() {
//! println!("Don't unindent me!");
//! });
//! ```