2015-01-20 10:58:06 +01:00
|
|
|
struct BuildData {
|
|
|
|
|
foo: isize,
|
|
|
|
|
bar: f32
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
let foo = BuildData {
|
|
|
|
|
foo: 0,
|
|
|
|
|
bar: 0.5,
|
|
|
|
|
};
|
2016-09-28 19:27:23 +10:00
|
|
|
let x = foo.baa;//~ no field `baa` on type `BuildData`
|
|
|
|
|
//~^ did you mean `bar`?
|
2015-01-20 10:58:06 +01:00
|
|
|
println!("{}", x);
|
|
|
|
|
}
|