]> git.proxmox.com Git - rustc.git/blob - src/test/ui/structs/struct-duplicate-comma.rs
New upstream version 1.46.0~beta.2+dfsg1
[rustc.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 }