From 1d79588994ca773fa80938021729dbff4679d78b Mon Sep 17 00:00:00 2001 From: csmoe <35686186+csmoe@users.noreply.github.com> Date: Wed, 25 Jul 2018 09:30:53 +0800 Subject: [PATCH] Update ui test --- src/test/ui/mismatched_types/closure-arg-count.stderr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/ui/mismatched_types/closure-arg-count.stderr b/src/test/ui/mismatched_types/closure-arg-count.stderr index 5660ff4c792..057cf6efa1d 100644 --- a/src/test/ui/mismatched_types/closure-arg-count.stderr +++ b/src/test/ui/mismatched_types/closure-arg-count.stderr @@ -5,7 +5,7 @@ LL | [1, 2, 3].sort_by(|| panic!()); | ^^^^^^^ -- takes 0 arguments | | | expected closure that takes 2 arguments -help: change the closure to take and ignore the expected arguments +help: consider changing the closure to take and ignore the expected arguments | LL | [1, 2, 3].sort_by(|_, _| panic!()); | ^^^^^^ @@ -55,7 +55,7 @@ note: required by `f` | LL | fn f>(_: F) {} | ^^^^^^^^^^^^^^^^^^^^^^^^ -help: change the closure to take and ignore the expected argument +help: consider changing the closure to take and ignore the expected argument | LL | f(|_| panic!()); | ^^^