diff --git a/src/test/ui/issue-49257.rs b/src/test/ui/issue-49257.rs index 75b9e12684165..61883294594bc 100644 --- a/src/test/ui/issue-49257.rs +++ b/src/test/ui/issue-49257.rs @@ -18,6 +18,6 @@ struct Point { x: u8, y: u8 } fn main() { let p = Point { x: 0, y: 0 }; let Point { .., y } = p; //~ ERROR expected `}`, found `,` - //~^ pattern does not mention field `x` - //~^^ pattern does not mention field `y` + //~| ERROR pattern does not mention field `x` + //~| ERROR pattern does not mention field `y` }