diff options
Diffstat (limited to 'tests/ui/suggestions/struct-initializer-comma.fixed')
-rw-r--r-- | tests/ui/suggestions/struct-initializer-comma.fixed | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/suggestions/struct-initializer-comma.fixed b/tests/ui/suggestions/struct-initializer-comma.fixed new file mode 100644 index 000000000..6a4ee39b1 --- /dev/null +++ b/tests/ui/suggestions/struct-initializer-comma.fixed @@ -0,0 +1,15 @@ +// run-rustfix + +pub struct Foo { + pub first: bool, + pub second: u8, +} + +fn main() { + let _ = Foo { + //~^ ERROR missing field + first: true, + second: 25 + //~^ ERROR expected one of + }; +} |