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-28 00:27:56 +00:00
struct BuildData {
foo: isize,
foo: isize,
2016-08-04 19:09:15 +00:00
//~^ ERROR field `foo` is already declared [E0124]
2013-06-28 00:27:56 +00:00
}
fn main() {
}