diff options
| author | csmoe <35686186+csmoe@users.noreply.github.com> | 2018-07-24 10:09:45 +0800 |
|---|---|---|
| committer | csmoe <35686186+csmoe@users.noreply.github.com> | 2018-07-24 10:09:45 +0800 |
| commit | a71deb2633eeaf03f64ae0ee3b389128ec06f392 (patch) | |
| tree | 25d9159f842265e2c70aeb82b34c07e07e5f79cf | |
| parent | 27c0d564efedef1bec06076c8c12108c0d6fd6ec (diff) | |
| download | rust-a71deb2633eeaf03f64ae0ee3b389128ec06f392.tar.gz rust-a71deb2633eeaf03f64ae0ee3b389128ec06f392.zip | |
Fix ui test
| -rw-r--r-- | src/test/ui/mismatched_types/closure-arg-count.stderr | 12 |
1 files 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 6270e794498..73e00df2111 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` |
