2 ms·
In general you'd just write `#[deriving(Freeze)]`, and you can write things like `#[deriving(Freeze, Send)]` to derive multiple traits. Part of the proposal is
by pcwalton 13y ago
In general you'd just write `#[deriving(Freeze)]`, and you can write things like `#[deriving(Freeze, Send)]` to derive multiple traits. Part of the proposal is to add a warning if you don't derive all the traits you were allowed to, unless you opt out. That way you always have to write in the code what you're allowed to do with a type, and the compiler checks that.