S0047: record type has no such field
Generated from rellum-diagnostics/src/db.rs.
Explanation
A record value exposes exactly the fields declared on its type. Accessing any other field name is rejected because there is no matching payload slot.
Common causes
- misspelling a record field name
- using a field from a different record type
- forgetting to update a field access after renaming the type definition
Canonical fixes
- use a field declared by the record type
Before:
x = point.width
After:
x = point.x
- add the field to the record type if the data should be stored there
Code example
x = point.width