diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2016-05-31 18:23:22 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2016-06-15 18:40:11 -0700 |
| commit | 1020e3036badebc56b02661666b09a62112d04ec (patch) | |
| tree | 175ef1c6bf37cd3afb0704fc180c123ee66f1539 /src/liballoc_jemalloc | |
| parent | ad5fbaf57c1f763935175cd217fedfc551d91aac (diff) | |
| download | rust-1020e3036badebc56b02661666b09a62112d04ec.tar.gz rust-1020e3036badebc56b02661666b09a62112d04ec.zip | |
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
