summary refs log tree commit diff
path: root/src/test/ui/pattern/pat-tuple-underfield.rs
AgeCommit message (Collapse)AuthorLines
2021-01-12Include `..` suggestion if fields are all wildcardsCamelid-0/+2
2021-01-12Add a test case with lots of whitespaceCamelid-0/+8
2021-01-12Only suggest `..` if more than one field is missingCamelid-4/+0
2021-01-12Specialize `..` help message for all fields vs. the restCamelid-6/+6
2021-01-12Suggest `_` and `..` if a pattern has too few fieldsCamelid-0/+49
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);