]> git.lizzy.rs Git - rust.git/blob - tests/ui/structs/struct-fields-typo.rs
Auto merge of #106812 - oli-obk:output_filenames, r=petrochenkov
[rust.git] / tests / ui / structs / struct-fields-typo.rs
1 struct BuildData {
2     foo: isize,
3     bar: f32
4 }
5
6 fn main() {
7     let foo = BuildData {
8         foo: 0,
9         bar: 0.5,
10     };
11     let x = foo.baa; //~ ERROR no field `baa` on type `BuildData`
12                      //~| HELP a field with a similar name exists
13                      //~| SUGGESTION bar
14     println!("{}", x);
15 }