2019-01-23 16:42:23 +01:00
|
|
|
error: expected `:`, found `=`
|
|
|
|
|
--> $DIR/issue-57684.rs:27:20
|
|
|
|
|
|
|
|
|
|
|
LL | let _ = X { f1 = 5 };
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
|
|
help: replace equals symbol with a colon
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - let _ = X { f1 = 5 };
|
|
|
|
|
LL + let _ = X { f1: 5 };
|
|
|
|
|
|
|
2019-01-23 16:42:23 +01:00
|
|
|
|
|
|
|
|
error: expected `:`, found `=`
|
|
|
|
|
--> $DIR/issue-57684.rs:32:12
|
|
|
|
|
|
|
|
|
|
|
LL | f1 = 5,
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
|
|
help: replace equals symbol with a colon
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - f1 = 5,
|
|
|
|
|
LL + f1: 5,
|
|
|
|
|
|
|
2019-01-23 16:42:23 +01:00
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|