Error code E0610
Attempted to access a field on a primitive type.
Erroneous code example:
ⓘ
Primitive types are the most basic types available in Rust and don't have fields. To access data via named fields, struct types are used. Example:
For more information about primitives and structs, take a look at the Book.