rust/src/test/compile-fail/struct-fields-too-many.rs

11 lines
159 B
Rust

struct BuildData {
foo: int,
}
fn main() {
let foo = BuildData {
foo: 0,
bar: 0 //~ ERROR structure has no field named `bar`
};
}