2019-10-14 19:20:50 -05:00
|
|
|
error[E0423]: expected function, tuple struct or tuple variant, found struct `Monster`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-6702.rs:7:14
|
2016-11-30 16:35:25 -06:00
|
|
|
|
|
2019-09-22 13:27:55 -05:00
|
|
|
LL | / struct Monster {
|
|
|
|
LL | | damage: isize
|
|
|
|
LL | | }
|
|
|
|
| |_- `Monster` defined here
|
|
|
|
...
|
|
|
|
LL | let _m = Monster();
|
2020-07-09 19:42:07 -05:00
|
|
|
| ^^^^^^^^^ help: use struct literal syntax instead: `Monster { damage: val }`
|
2016-11-30 16:35:25 -06:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2016-11-30 16:35:25 -06:00
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0423`.
|