diff options
| author | bors <bors@rust-lang.org> | 2016-06-15 22:12:26 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-06-15 22:12:26 -0700 |
| commit | 7339eca0cc700e2d75536dce3ca772eedfb86f08 (patch) | |
| tree | fa6c8ad4c71f91c29bb627883164ddaa799e43be /src/liballoc_jemalloc | |
| parent | 58adb0760726bfb6f19c055caa58af51ef393b57 (diff) | |
| parent | 1020e3036badebc56b02661666b09a62112d04ec (diff) | |
| download | rust-7339eca0cc700e2d75536dce3ca772eedfb86f08.tar.gz rust-7339eca0cc700e2d75536dce3ca772eedfb86f08.zip | |
Auto merge of #34000 - estebank:missingargs, r=jseyfried
Show types of all args when missing args
When there're missing arguments in a function call, present a list of
all the expected types:
```rust
fn main() {
t("");
}
fn t(a: &str, x: String) {}
```
```bash
% rustc file.rs
file.rs:3:5: 2:8 error: this function takes 2 parameters but 0
parameters were supplied [E0061]
file.rs:3 t();
^~~
file.rs:3:5: 2:8 help: run `rustc --explain E0061` to see a detailed explanation
file.rs:3:5: 2:8 note: the following parameter types were expected: &str, std::string::String
error: aborting due to previous error
```
Fixes #33649
Diffstat (limited to 'src/liballoc_jemalloc')
0 files changed, 0 insertions, 0 deletions
