Skip to main content

READ_ONLY_PLACE

Constant READ_ONLY_PLACE 

Source
pub const READ_ONLY_PLACE: &str = "cove::type::read_only_place";
Expand description

A place let made read-only is written, passed as var, or given to a var self receiver.

One code for the one rule — let creates a read-only place; var creates a mutable place — however it is broken. The three messages differ because what the program was doing differs; the fact reported is the same, and a reader who wants to suppress or search for it wants all three.