]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/issue-2523.rs
Auto merge of #95315 - compiler-errors:pointee-fix, r=pnkfelix
[rust.git] / src / tools / rustfmt / tests / target / 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!(
16 //!     pub fn foo() {
17 //!         println!("Don't unindent me!");
18 //!     }
19 //! );
20 //! ```