f14d007ee4
This commit adds a suggestion when a `=` character is used when specifying the value of a field in a struct constructor incorrectly instead of a `:` character.
19 lines
448 B
Plaintext
19 lines
448 B
Plaintext
error: expected `:`, found `=`
|
|
--> $DIR/issue-57684.rs:27:20
|
|
|
|
|
LL | let _ = X { f1 = 5 };
|
|
| -^
|
|
| |
|
|
| help: replace equals symbol with a colon: `:`
|
|
|
|
error: expected `:`, found `=`
|
|
--> $DIR/issue-57684.rs:32:12
|
|
|
|
|
LL | f1 = 5,
|
|
| -^
|
|
| |
|
|
| help: replace equals symbol with a colon: `:`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|