diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-9725.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-9725.rs b/src/test/ui/issues/issue-9725.rs new file mode 100644 index 000000000..360effbd1 --- /dev/null +++ b/src/test/ui/issues/issue-9725.rs @@ -0,0 +1,7 @@ +struct A { foo: isize } + +fn main() { + let A { foo, foo } = A { foo: 3 }; + //~^ ERROR: identifier `foo` is bound more than once in the same pattern + //~^^ ERROR: field `foo` bound multiple times +} |