diff options
Diffstat (limited to 'src/tools/clippy/tests/ui/print_with_newline.rs')
-rw-r--r-- | src/tools/clippy/tests/ui/print_with_newline.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/tools/clippy/tests/ui/print_with_newline.rs b/src/tools/clippy/tests/ui/print_with_newline.rs index a43a1fc4f..b8c29d207 100644 --- a/src/tools/clippy/tests/ui/print_with_newline.rs +++ b/src/tools/clippy/tests/ui/print_with_newline.rs @@ -48,5 +48,13 @@ fn main() { print!("\r\n"); print!("foo\r\n"); print!("\\r\n"); //~ ERROR - print!("foo\rbar\n") // ~ ERROR + print!("foo\rbar\n"); + + // Ignore expanded format strings + macro_rules! newline { + () => { + "\n" + }; + } + print!(newline!()); } |