diff --git a/src/test/run-fail/mir_drop_panics.rs b/src/test/run-fail/mir_drop_panics.rs index 51191dd7087..b3980f32d27 100644 --- a/src/test/run-fail/mir_drop_panics.rs +++ b/src/test/run-fail/mir_drop_panics.rs @@ -17,7 +17,7 @@ fn drop(&mut self) { if self.0 == 1 { panic!("panic 1"); } else { - eprint!("drop {}", self.0); + eprintln!("drop {}", self.0); } } } diff --git a/src/test/run-fail/panic-set-handler.rs b/src/test/run-fail/panic-set-handler.rs index 2d430be07ef..2fa933d513a 100644 --- a/src/test/run-fail/panic-set-handler.rs +++ b/src/test/run-fail/panic-set-handler.rs @@ -14,7 +14,7 @@ fn main() { panic::set_hook(Box::new(|i| { - eprint!("greetings from the panic handler"); + eprintln!("greetings from the panic handler"); })); panic!("foobar"); }