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