Skip to content

Commit 3d0ccb2

Browse files
committed
Fix test for PR #49268
1 parent f8fc5c0 commit 3d0ccb2

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

src/test/ui/issue-49257.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,5 @@ struct Point { x: u8, y: u8 }
1818
fn main() {
1919
let p = Point { x: 0, y: 0 };
2020
let Point { .., y } = p; //~ ERROR expected `}`, found `,`
21-
//~| ERROR pattern does not mention field `x`
22-
//~| ERROR pattern does not mention field `y`
21+
//~| ERROR pattern does not mention fields `x`, `y`
2322
}

src/test/ui/issue-49257.stderr

+3-9
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,12 @@ error: expected `}`, found `,`
44
LL | let Point { .., y } = p; //~ ERROR expected `}`, found `,`
55
| ^ `..` must be in the last position, and cannot have a trailing comma
66

7-
error[E0027]: pattern does not mention field `x`
7+
error[E0027]: pattern does not mention fields `x`, `y`
88
--> $DIR/issue-49257.rs:20:9
99
|
1010
LL | let Point { .., y } = p; //~ ERROR expected `}`, found `,`
11-
| ^^^^^^^^^^^^^^^ missing field `x`
11+
| ^^^^^^^^^^^^^^^ missing fields `x`, `y`
1212

13-
error[E0027]: pattern does not mention field `y`
14-
--> $DIR/issue-49257.rs:20:9
15-
|
16-
LL | let Point { .., y } = p; //~ ERROR expected `}`, found `,`
17-
| ^^^^^^^^^^^^^^^ missing field `y`
18-
19-
error: aborting due to 3 previous errors
13+
error: aborting due to 2 previous errors
2014

2115
For more information about this error, try `rustc --explain E0027`.

0 commit comments

Comments
 (0)