rust/tests/source/issue-2523.rs

18 lines
394 B
Rust
Raw Normal View History

2018-03-09 02:09:56 -06:00
// 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!");
//! });
//! ```