1
Fork 0
rust/tests/ui/structs/struct-fields-dupe.rs

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

11 lines
163 B
Rust
Raw Normal View History

struct BuildData {
foo: isize,
}
fn main() {
let foo = BuildData {
foo: 0,
foo: 0 //~ ERROR field `foo` specified more than once
};
}