Use shorthand field syntax in destructures

This commit is contained in:
Lukas Wirth 2020-11-14 19:57:47 +01:00
parent 924eecf4af
commit cb60708274
3 changed files with 84 additions and 29 deletions

View file

@ -622,7 +622,7 @@ fn foo() {
expect![[r#"
f RECORD_FIELD FileId(0) 15..21 15..16 Other
FileId(0) 55..56 Other Read
FileId(0) 55..56 RecordFieldExprOrPat Read
FileId(0) 68..69 Other Write
"#]],
);
@ -757,7 +757,7 @@ fn f() -> m::En {
expect![[r#"
field RECORD_FIELD FileId(0) 56..65 56..61 Other
FileId(0) 125..130 Other Read
FileId(0) 125..130 RecordFieldExprOrPat Read
"#]],
);
}