]> git.lizzy.rs Git - rust.git/blob - src/test/ui/structs/struct-duplicate-comma.fixed
Rollup merge of #105843 - compiler-errors:sugg-const, r=lcnr
[rust.git] / src / test / ui / structs / struct-duplicate-comma.fixed
1 // run-rustfix
2 // Issue #50974
3
4 pub struct Foo {
5     pub a: u8,
6     pub b: u8
7 }
8
9 fn main() {
10     let _ = Foo {
11         a: 0,
12           //~^ ERROR expected identifier
13         b: 42
14     };
15 }