Skip to main content

READ_ONLY_PROPERTY_MESSAGE

Constant READ_ONLY_PROPERTY_MESSAGE 

Source
pub const READ_ONLY_PROPERTY_MESSAGE: &str = "cannot assign to a property backed by a getter with no setter";
Expand description

Thrown when a property write resolves, at runtime, to a getter with no setter — reachable only through a receiver whose static type does not say which implementation backs the property.