about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorCamelid <camelidcamel@gmail.com>2020-12-13 14:13:52 -0800
committerCamelid <camelidcamel@gmail.com>2021-01-12 19:25:49 -0800
commit16692ab66a6e2c62b416f606f144d60711c14414 (patch)
tree512358f45f1e10b4aab4ef385f12a275bc3da676 /src/test/codegen/src-hash-algorithm
parent058a71016553f267ae80b90276ef79956457d51a (diff)
downloadrust-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