# E4044

Compiler diagnostic name: `missing_fields_in_record`.

Struct or record fields are missing.

When constructing a struct value, every required field must be provided. When
matching a struct pattern, either list all fields that matter or use `..` to
ignore the rest.

## Erroneous example

```{literalinclude} /sources/error_codes/4044_error/top.mbt
:language: moonbit
```

## Suggestion

Provide all required fields in the struct value.

```{literalinclude} /sources/error_codes/4044_fixed/top.mbt
:language: moonbit
```
