diff --git a/src/test/ui/mismatched_types/closure-arg-count.stderr b/src/test/ui/mismatched_types/closure-arg-count.stderr index 5660ff4c792e..057cf6efa1de 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!()); | ^^^