Fix error annotations in test

This commit is contained in:
Hidehito Yabuuchi 2018-03-23 01:15:27 +09:00
parent 3bfed9e43f
commit f8fc5c0523

View file

@ -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`
}