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