summaryrefslogtreecommitdiffstats
path: root/src/test/ui/structs/struct-fields-decl-dupe.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/structs/struct-fields-decl-dupe.rs')
-rw-r--r--src/test/ui/structs/struct-fields-decl-dupe.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/structs/struct-fields-decl-dupe.rs b/src/test/ui/structs/struct-fields-decl-dupe.rs
new file mode 100644
index 000000000..6ddf3d976
--- /dev/null
+++ b/src/test/ui/structs/struct-fields-decl-dupe.rs
@@ -0,0 +1,8 @@
+struct BuildData {
+ foo: isize,
+ foo: isize,
+ //~^ ERROR field `foo` is already declared [E0124]
+}
+
+fn main() {
+}