rust/tests/ui/structs/struct-fields-too-many.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
179 B
Rust
Raw Normal View History

struct BuildData {
foo: isize,
}
fn main() {
let foo = BuildData {
foo: 0,
2016-09-16 04:10:32 +00:00
bar: 0
//~^ ERROR struct `BuildData` has no field named `bar`
};
}