]> git.lizzy.rs Git - rust.git/blob - tests/ui/structs/struct-duplicate-comma.rs
Rollup merge of #106591 - Ezrashaw:attempted-integer-identifer, r=Estebank
[rust.git] / tests / 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 }