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