]> git.lizzy.rs Git - rust.git/blob - src/test/ui/structs/struct-duplicate-comma.rs
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / structs / struct-duplicate-comma.rs
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 }