]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0026.rs
Merge commit '6ed6f1e6a1a8f414ba7e6d9b8222e7e5a1686e42' into clippyup
[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 }