Fix error annotations in test
This commit is contained in:
parent
3bfed9e43f
commit
f8fc5c0523
1 changed files with 2 additions and 2 deletions
|
|
@ -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`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue