5 // This test checks that the following error is emitted when a `=` character is used to initialize
6 // a struct field when a `:` is expected.
9 // error: struct fields are initialized with a colon
10 // --> $DIR/issue-57684.rs:12:20
12 // LL | let _ = X { f1 = 5 };
13 // | ^ help: replace equals symbol with a colon: `:`
28 //~^ ERROR expected `:`, found `=`
33 //~^ ERROR expected `:`, found `=`