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