diff options
| author | Camelid <camelidcamel@gmail.com> | 2020-12-13 14:13:52 -0800 |
|---|---|---|
| committer | Camelid <camelidcamel@gmail.com> | 2021-01-12 19:25:49 -0800 |
| commit | 16692ab66a6e2c62b416f606f144d60711c14414 (patch) | |
| tree | 512358f45f1e10b4aab4ef385f12a275bc3da676 /src/test/codegen/src-hash-algorithm | |
| parent | 058a71016553f267ae80b90276ef79956457d51a (diff) | |
| download | rust-16692ab66a6e2c62b416f606f144d60711c14414.tar.gz rust-16692ab66a6e2c62b416f606f144d60711c14414.zip | |
Suggest `_` and `..` if a pattern has too few fields
For example, this code:
struct S(i32, f32);
let S(x) = S(0, 1.0);
will make the compiler suggest either:
let S(x, _) = S(0, 1.0);
or:
let S(x, ..) = S(0, 1.0);
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
