diff options
| author | csmoe <35686186+csmoe@users.noreply.github.com> | 2018-07-25 09:30:53 +0800 |
|---|---|---|
| committer | csmoe <35686186+csmoe@users.noreply.github.com> | 2018-07-25 09:30:53 +0800 |
| commit | 1d79588994ca773fa80938021729dbff4679d78b (patch) | |
| tree | 4048b4512188f4c64d438f9efa86e05dfe8c96ab /src/test | |
| parent | d5256b75dfca78e257748ec01947e7327ea627bd (diff) | |
| download | rust-1d79588994ca773fa80938021729dbff4679d78b.tar.gz rust-1d79588994ca773fa80938021729dbff4679d78b.zip | |
Update ui test
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/mismatched_types/closure-arg-count.stderr | 4 |
1 files 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: Fn<usize>>(_: 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!()); | ^^^ |
