]> git.lizzy.rs Git - rust.git/blob - tests/ui/structs/struct-duplicate-comma.fixed
Auto merge of #106646 - Amanieu:ilp32-object, r=Mark-Simulacrum
[rust.git] / tests / 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 }