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