From bd176ee591cd391835bfbcb3409a743bac2128ca Mon Sep 17 00:00:00 2001 From: Esteban Küber Date: Wed, 1 Feb 2023 17:44:48 +0000 Subject: Make removal suggestion not verbose --- .../ui/alloc-error/alloc-error-handler-bad-signature-3.stderr | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'tests/ui/alloc-error') diff --git a/tests/ui/alloc-error/alloc-error-handler-bad-signature-3.stderr b/tests/ui/alloc-error/alloc-error-handler-bad-signature-3.stderr index 9f568f86970..d1b9d7a40b4 100644 --- a/tests/ui/alloc-error/alloc-error-handler-bad-signature-3.stderr +++ b/tests/ui/alloc-error/alloc-error-handler-bad-signature-3.stderr @@ -7,7 +7,10 @@ LL | fn oom() -> ! { | _-^^^^^^^^^^^^ LL | | loop {} LL | | } - | |_- unexpected argument of type `core::alloc::Layout` + | | - + | | | + | |_unexpected argument of type `core::alloc::Layout` + | help: remove the extra argument | note: function defined here --> $DIR/alloc-error-handler-bad-signature-3.rs:10:4 @@ -15,12 +18,6 @@ note: function defined here LL | fn oom() -> ! { | ^^^ = note: this error originates in the attribute macro `alloc_error_handler` (in Nightly builds, run with -Z macro-backtrace for more info) -help: remove the extra argument - | -LL - fn oom() -> ! { -LL - loop {} -LL - } - | error: aborting due to previous error -- cgit 1.4.1-3-g733a5