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