diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-11-23 12:18:09 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-11-23 12:18:09 +0100 |
| commit | 464cce99f1fe09db35d56ca07ae4c05f591eb651 (patch) | |
| tree | f4e030f5660d678509d4ba5c44d8824c8e1ca259 /src/test/run-pass/thinlto | |
| parent | ccdc26fd42dfccc5832114baa275f0936738095a (diff) | |
| parent | ec24442e60bce2605a64ac3aef5784510e4a5fd5 (diff) | |
| download | rust-464cce99f1fe09db35d56ca07ae4c05f591eb651.tar.gz rust-464cce99f1fe09db35d56ca07ae4c05f591eb651.zip | |
Rollup merge of #37442 - estebank:cast-deref-hint, r=jonathandturner
Provide hint when cast needs a dereference For a given code: ``` rust vec![0.0].iter().map(|s| s as i16).collect::<Vec<i16>>(); ``` display: ``` nocode error: casting `&f64` as `i16` is invalid --> file3.rs:2:35 | 2 | vec![0.0].iter().map(|s| s as i16).collect::<Vec<i16>>(); | - ^^^ | | | did you mean `*s`? ``` instead of: ``` nocode error: casting `&f64` as `i16` is invalid --> <anon>:2:30 | 2 | vec![0.0].iter().map(|s| s as i16).collect(); | ^^^^^^^^ | = help: cast through a raw pointer first ``` Fixes #37338.
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions
