]> git.lizzy.rs Git - rust.git/blob - tests/ui/structs/struct-fields-too-many.rs
Rollup merge of #106793 - Mark-Simulacrum:normalize-test, r=compiler-errors
[rust.git] / tests / ui / structs / struct-fields-too-many.rs
1 struct BuildData {
2     foo: isize,
3 }
4
5 fn main() {
6     let foo = BuildData {
7         foo: 0,
8         bar: 0
9         //~^ ERROR struct `BuildData` has no field named `bar`
10     };
11 }