rust/tests/target/issue-2523.rs
Seiichi Uchida a925bdf092 Add a test for #3031 and update test
No combining for an item-like macro argument.
2018-10-08 13:50:00 +09:00

20 lines
418 B
Rust

// rustfmt-normalize_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!");
//! }
//! );
//! ```