]> git.lizzy.rs Git - rust.git/blob - tests/source/issue-2523.rs
Add a test for #2523
[rust.git] / tests / source / issue-2523.rs
1 // rustfmt-normalize_comments: true
2
3 // Do not unindent macro calls in comment with unformattable syntax.
4 //! ```rust
5 //! let x = 3  ;
6 //! some_macro!(pub fn fn foo() (
7 //!     println!("Don't unindent me!");
8 //! ));
9 //! ```
10
11 // Format items that appear as arguments of macro call.
12 //! ```rust
13 //! let x = 3  ;
14 //! some_macro!(pub fn foo() {
15 //! println!("Don't unindent me!");
16 //! });
17 //! ```