2019-08-13 01:31:13 -05:00
|
|
|
error[E0423]: expected value, found struct `X`
|
2020-07-09 15:49:55 -05:00
|
|
|
--> $DIR/issue-61226.rs:4:18
|
2019-08-13 01:31:13 -05:00
|
|
|
|
|
2019-09-22 13:27:55 -05:00
|
|
|
LL | struct X {}
|
|
|
|
| ----------- `X` defined here
|
|
|
|
LL | fn main() {
|
2020-07-09 15:49:55 -05:00
|
|
|
LL | let _ = vec![X]; //…
|
|
|
|
| ^ help: use struct literal syntax instead: `X {}`
|
2019-08-13 01:31:13 -05:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2019-08-13 01:31:13 -05:00
|
|
|
|
2019-08-13 11:01:56 -05:00
|
|
|
For more information about this error, try `rustc --explain E0423`.
|