]> git.lizzy.rs Git - rust.git/blob - tests/ui/structs/struct-fields-too-many.rs
Auto merge of #106503 - cjgillot:remap-nofilter, r=oli-obk
[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 }