diff options
Diffstat (limited to 'tests/ui/error-codes/E0062.rs')
-rw-r--r-- | tests/ui/error-codes/E0062.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0062.rs b/tests/ui/error-codes/E0062.rs new file mode 100644 index 000000000..3b7f88750 --- /dev/null +++ b/tests/ui/error-codes/E0062.rs @@ -0,0 +1,11 @@ +struct Foo { + x: i32 +} + +fn main() { + let x = Foo { + x: 0, + x: 0, + //~^ ERROR E0062 + }; +} |