From 70ed4f972e73f5fe8c11c4ac0cf98d13b30083b9 Mon Sep 17 00:00:00 2001 From: Esteban Küber Date: Thu, 30 Aug 2018 16:00:09 -0700 Subject: Point at def span on incorrect panic or alloc error handler --- src/test/ui/alloc-error/alloc-error-handler-bad-signature-3.stderr | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/test/ui/alloc-error') diff --git a/src/test/ui/alloc-error/alloc-error-handler-bad-signature-3.stderr b/src/test/ui/alloc-error/alloc-error-handler-bad-signature-3.stderr index 9b792c46c24..e7885537b06 100644 --- a/src/test/ui/alloc-error/alloc-error-handler-bad-signature-3.stderr +++ b/src/test/ui/alloc-error/alloc-error-handler-bad-signature-3.stderr @@ -1,10 +1,8 @@ error: function should have one argument --> $DIR/alloc-error-handler-bad-signature-3.rs:20:1 | -LL | / fn oom() -> ! { //~ ERROR function should have one argument -LL | | loop {} -LL | | } - | |_^ +LL | fn oom() -> ! { //~ ERROR function should have one argument + | ^^^^^^^^^^^^^ error: aborting due to previous error -- cgit 1.4.1-3-g733a5