From 169f35712c264866986227a78ce135638b270f0f Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Thu, 11 May 2017 15:34:14 +0100 Subject: [PATCH] clean tests/ui/print.rs Cleaning the empty lines for clarity. --- tests/ui/print.rs | 5 ----- tests/ui/print.stderr | 28 ++++++++++++++-------------- 2 files changed, 14 insertions(+), 19 deletions(-) diff --git a/tests/ui/print.rs b/tests/ui/print.rs index e6b114b89..7a53fef48 100644 --- a/tests/ui/print.rs +++ b/tests/ui/print.rs @@ -10,7 +10,6 @@ struct Foo; impl Display for Foo { fn fmt(&self, f: &mut Formatter) -> Result { write!(f, "{:?}", 43.1415) - } } @@ -29,12 +28,8 @@ fn main() { print!("Hello {:?}", "World"); - - print!("Hello {:#?}", "#orld"); - - assert_eq!(42, 1337); vec![1, 2]; diff --git a/tests/ui/print.stderr b/tests/ui/print.stderr index 5afb8ae50..e21a49a74 100644 --- a/tests/ui/print.stderr +++ b/tests/ui/print.stderr @@ -11,9 +11,9 @@ note: lint level defined here | ^^^^^^^^^ error: use of `println!` - --> $DIR/print.rs:25:5 + --> $DIR/print.rs:24:5 | -25 | println!("Hello"); +24 | println!("Hello"); | ^^^^^^^^^^^^^^^^^^ | note: lint level defined here @@ -23,39 +23,39 @@ note: lint level defined here | ^^^^^^^^^^^^ error: use of `print!` - --> $DIR/print.rs:26:5 + --> $DIR/print.rs:25:5 | -26 | print!("Hello"); +25 | print!("Hello"); | ^^^^^^^^^^^^^^^^ error: use of `print!` - --> $DIR/print.rs:28:5 + --> $DIR/print.rs:27:5 | -28 | print!("Hello {}", "World"); +27 | print!("Hello {}", "World"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: use of `print!` - --> $DIR/print.rs:30:5 + --> $DIR/print.rs:29:5 | -30 | print!("Hello {:?}", "World"); +29 | print!("Hello {:?}", "World"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: use of `Debug`-based formatting - --> $DIR/print.rs:30:26 + --> $DIR/print.rs:29:26 | -30 | print!("Hello {:?}", "World"); +29 | print!("Hello {:?}", "World"); | ^^^^^^^ error: use of `print!` - --> $DIR/print.rs:34:5 + --> $DIR/print.rs:31:5 | -34 | print!("Hello {:#?}", "#orld"); +31 | print!("Hello {:#?}", "#orld"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: use of `Debug`-based formatting - --> $DIR/print.rs:34:27 + --> $DIR/print.rs:31:27 | -34 | print!("Hello {:#?}", "#orld"); +31 | print!("Hello {:#?}", "#orld"); | ^^^^^^^ error: aborting due to 8 previous errors