2012-10-31 13:56:08 -07:00
|
|
|
struct BuildData {
|
2015-01-08 21:54:35 +11:00
|
|
|
foo: isize,
|
2012-10-31 13:56:08 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let foo = BuildData {
|
|
|
|
foo: 0,
|
2016-09-16 00:10:32 -04:00
|
|
|
bar: 0
|
|
|
|
//~^ ERROR struct `BuildData` has no field named `bar`
|
2012-10-31 13:56:08 -07:00
|
|
|
};
|
|
|
|
}
|