diff options
| author | bors <bors@rust-lang.org> | 2017-10-13 20:14:38 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-10-13 20:14:38 +0000 |
| commit | 02a24dbdd8c3a5daa6578af72116020de75b5f93 (patch) | |
| tree | 649fdefa210fce381e1581457b8eb530dd2055a1 /src/rustllvm/RustWrapper.cpp | |
| parent | 6cb49d2a3e86f0d2f220f12c59c0ebb2965ff38c (diff) | |
| parent | f577847aa22cda4935562fe8e7c9420bcc58f148 (diff) | |
| download | rust-02a24dbdd8c3a5daa6578af72116020de75b5f93.tar.gz rust-02a24dbdd8c3a5daa6578af72116020de75b5f93.zip | |
Auto merge of #45069 - sinkuu:tuple_arg, r=nikomatsakis
Better error for missing tuple pattern in args #44150 Before: ``` error[E0593]: closure takes 2 arguments but 1 argument is required --> test.rs:5:40 | 5 | let it = v.into_iter().enumerate().map(|i, x| i); | ^^^ -------- takes 2 arguments | | | expected closure that takes 1 argument ``` After: ``` error[E0593]: closure takes 2 arguments but a 2-tuple is required --> test.rs:5:40 | 5 | let it = v.into_iter().enumerate().map(|i, x| i); | ^^^ ------ takes 2 arguments | | | expected closure that takes a 2-tuple ```
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
