rust/tests/ui/structs/struct-fields-decl-dupe.rs

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

9 lines
123 B
Rust
Raw Normal View History

2013-06-27 19:27:56 -05:00
struct BuildData {
foo: isize,
foo: isize,
2016-08-04 14:09:15 -05:00
//~^ ERROR field `foo` is already declared [E0124]
2013-06-27 19:27:56 -05:00
}
fn main() {
}