Add a test for

This commit is contained in:
topecongiro 2018-03-09 17:09:56 +09:00
parent dc2f1429e7
commit c3e76bc02c
2 changed files with 34 additions and 0 deletions

@ -0,0 +1,17 @@
// 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!");
//! });
//! ```

@ -0,0 +1,17 @@
// 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!");
//! });
//! ```