]> git.lizzy.rs Git - rust.git/blob - tests/ui/structs/struct-fields-too-many.rs
Auto merge of #101138 - Rejyr:diagnostic-migration-rustc-lint-pt2, r=davidtwco
[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 }