rust/src/test/ui/error-codes/E0026.rs
2018-12-25 21:08:33 -07:00

13 lines
223 B
Rust

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]
}
}