Skip to content

Commit ced8ce4

Browse files
committed
Fix tests
1 parent 6b18424 commit ced8ce4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/test/ui/destructuring-assignment/struct_destructure_fail.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ error: functional record updates are not allowed in destructuring assignments
1010
--> $DIR/struct_destructure_fail.rs:14:19
1111
|
1212
LL | Struct { a, ..d } = Struct { a: 1, b: 2 };
13-
| ^ help: consider removing the trailing expression
13+
| ^ help: consider removing the trailing pattern
1414

1515
error: base expression required after `..`
1616
--> $DIR/struct_destructure_fail.rs:16:19

src/test/ui/destructuring-assignment/warn-unused-duplication.stderr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ LL | #![warn(unused_assignments)]
1111
| ^^^^^^^^^^^^^^^^^^
1212
= help: maybe it is overwritten before being read?
1313

14+
warning: 1 warning emitted
15+

0 commit comments

Comments
 (0)