about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-05-02 09:41:39 +0000
committerbors <bors@rust-lang.org>2017-05-02 09:41:39 +0000
commit50517d58a2f43779c27478baf77f938c0b3ebba0 (patch)
tree17b4c23fd04ca5324a0f00b06a024a4ff8b264ec /src/test/run-pass/thinlto
parent33535afda497e1de8a831e8270ae8099434f662b (diff)
parentb10e2933d939a8412b1358c235f39cb87ae1a450 (diff)
downloadrust-50517d58a2f43779c27478baf77f938c0b3ebba0.tar.gz
rust-50517d58a2f43779c27478baf77f938c0b3ebba0.zip
Auto merge of #41488 - estebank:closure-args, r=arielb1
Clean up callable type mismatch errors

```rust
error[E0593]: closure takes 1 argument but 2 arguments are required here
  --> ../../src/test/ui/mismatched_types/closure-arg-count.rs:13:15
   |
13 |     [1, 2, 3].sort_by(|(tuple, tuple2)| panic!());
   |               ^^^^^^^ -------------------------- takes 1 argument
   |               |
   |               expected closure that takes 2 arguments
```

instead of

```rust
error[E0281]: type mismatch: the type `[closure@../../src/test/ui/mismatched_types/closure-arg-count.rs:13:23: 13:49]` implements the trait `for<'r> std::ops::FnMut<(&'r {integer},)>`, but the trait `for<'r, 'r> std::ops::FnMut<(&'r {integer}, &'r {integer})>` is required (expected a tuple with 2 elements, found one with 1 elements)
  --> ../../src/test/ui/mismatched_types/closure-arg-count.rs:13:15
   |
13 |     [1, 2, 3].sort_by(|(tuple, tuple2)| panic!());
   |               ^^^^^^^
```

Fix #21857, re #24680.
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions