]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0026.rs
Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' 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 }