Add a test for #2523
This commit is contained in:
parent
dc2f1429e7
commit
c3e76bc02c
tests
17
tests/source/issue-2523.rs
Normal file
17
tests/source/issue-2523.rs
Normal file
@ -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!");
|
||||
//! });
|
||||
//! ```
|
17
tests/target/issue-2523.rs
Normal file
17
tests/target/issue-2523.rs
Normal file
@ -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!");
|
||||
//! });
|
||||
//! ```
|
Loading…
x
Reference in New Issue
Block a user