diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/structs/struct-missing-comma.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/structs/struct-missing-comma.rs b/src/test/ui/structs/struct-missing-comma.rs new file mode 100644 index 000000000..b6d6c9b8f --- /dev/null +++ b/src/test/ui/structs/struct-missing-comma.rs @@ -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 }; +} |