diff options
Diffstat (limited to 'src/test/ui/structs/struct-missing-comma.fixed')
-rw-r--r-- | src/test/ui/structs/struct-missing-comma.fixed | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/structs/struct-missing-comma.fixed b/src/test/ui/structs/struct-missing-comma.fixed new file mode 100644 index 000000000..a28179ba2 --- /dev/null +++ b/src/test/ui/structs/struct-missing-comma.fixed @@ -0,0 +1,12 @@ +// Issue #50636 +// run-rustfix + +pub struct S { + pub foo: u32, //~ expected `,`, or `}`, found keyword `pub` + // ~^ HELP try adding a comma: ',' + pub bar: u32 +} + +fn main() { + let _ = S { foo: 5, bar: 6 }; +} |