blob: 0b1ea1c7bcdb3480ce52bb3177f92207292e0320 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
struct Thing {
x: u32,
y: u32
}
fn main() {
let thing = Thing { x: 0, y: 0 };
match thing {
Thing { x, y, z } => {}
//~^ ERROR struct `Thing` does not have a field named `z` [E0026]
}
}
|