diff options
Diffstat (limited to 'tests/ui/structs/struct-duplicate-comma.fixed')
-rw-r--r-- | tests/ui/structs/struct-duplicate-comma.fixed | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/structs/struct-duplicate-comma.fixed b/tests/ui/structs/struct-duplicate-comma.fixed new file mode 100644 index 000000000..c804cf57a --- /dev/null +++ b/tests/ui/structs/struct-duplicate-comma.fixed @@ -0,0 +1,15 @@ +// run-rustfix +// Issue #50974 + +pub struct Foo { + pub a: u8, + pub b: u8 +} + +fn main() { + let _ = Foo { + a: 0, + //~^ ERROR expected identifier + b: 42 + }; +} |