diff options
| author | Corey Farwell <coreyf@rwell.org> | 2017-02-07 22:54:20 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-07 22:54:20 -0500 |
| commit | 19977911ce8411db27e24c93a581b856c82f5f06 (patch) | |
| tree | c7220606b0297b506248fe3afa95da18fe96e306 /src/test/incremental/thinlto | |
| parent | 4cde461bb037d816a2a004c23e6365babb0889e3 (diff) | |
| parent | 3fa28cb206604fddf67a29e7cbd3a8b22da1edc2 (diff) | |
| download | rust-19977911ce8411db27e24c93a581b856c82f5f06.tar.gz rust-19977911ce8411db27e24c93a581b856c82f5f06.zip | |
Rollup merge of #39361 - cengizIO:master, r=arielb1
Improve error message for uninferrable types #38812 Hello, I tried to improve the error message for uninferrable types. The error code is `E0282`. ```rust error[E0282]: type annotations needed --> /home/cengizIO/issue38812.rs:2:11 | 2 | let x = vec![]; | - ^^^^^^ cannot infer type for `T` | | | consider giving `x` a type | = note: this error originates in a macro outside of the current crate ``` and ```rust error[E0282]: type annotations needed --> /home/cengizIO/issue38812.rs:2:15 | 2 | let (x,) = (vec![],); | ---- ^^^^^^ cannot infer type for `T` | | | consider giving a type to pattern | = note: this error originates in a macro outside of the current crate ``` Rust compiler now tries to find uninferred `local`s with type `_` and adds them into the error message. I'm probably wrong on wording that I used. Please feel free to suggest better alternatives. Thanks @nikomatsakis for mentoring 🍺 Any comments/feedback is more than welcome! Thank you
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
