error[E0560]: struct `BuildData` has no field named `bar` --> $DIR/struct-fields-too-many.rs:18:9 | 18 | bar: 0 | ^^^ `BuildData` does not have this field | = note: available fields are: `foo` error: aborting due to previous error If you want more information on this error, try using "rustc --explain E0560"