From a71deb2633eeaf03f64ae0ee3b389128ec06f392 Mon Sep 17 00:00:00 2001 From: csmoe <35686186+csmoe@users.noreply.github.com> Date: Tue, 24 Jul 2018 10:09:45 +0800 Subject: [PATCH] Fix ui test --- .../ui/mismatched_types/closure-arg-count.stderr | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/test/ui/mismatched_types/closure-arg-count.stderr b/src/test/ui/mismatched_types/closure-arg-count.stderr index 6270e7944987..73e00df21110 100644 --- a/src/test/ui/mismatched_types/closure-arg-count.stderr +++ b/src/test/ui/mismatched_types/closure-arg-count.stderr @@ -2,8 +2,10 @@ error[E0593]: closure is expected to take 2 arguments, but it takes 0 arguments --> $DIR/closure-arg-count.rs:15:15 | LL | [1, 2, 3].sort_by(|| panic!()); - | ^^^^^^^ -- takes 0 arguments - | | + | ^^^^^^^ -- + | | | + | | takes 0 arguments + | | help: change the closure to take and ignore the arguments: `|_, _|` | expected closure that takes 2 arguments error[E0593]: closure is expected to take 2 arguments, but it takes 1 argument @@ -42,8 +44,10 @@ error[E0593]: closure is expected to take 1 argument, but it takes 0 arguments --> $DIR/closure-arg-count.rs:23:5 | LL | f(|| panic!()); - | ^ -- takes 0 arguments - | | + | ^ -- + | | | + | | takes 0 arguments + | | help: change the closure to take and ignore the argument: `|_|` | expected closure that takes 1 argument | note: required by `f`