summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/issue-2523.rs
blob: 491d5c38fc22a62dfeccf35f29d07746d01453d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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!");
//! });
//! ```