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