]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0026.rs
Rollup merge of #97915 - tbu-:pr_os_string_fmt_write, r=joshtriplett
[rust.git] / src / test / ui / error-codes / E0026.rs
1 struct Thing {
2     x: u32,
3     y: u32
4 }
5
6 fn main() {
7     let thing = Thing { x: 0, y: 0 };
8     match thing {
9         Thing { x, y, z } => {}
10         //~^ ERROR struct `Thing` does not have a field named `z` [E0026]
11     }
12 }