3 ms·
(*role) is not a reference at all, it is a value. its type is Role.
by gulbanana 5y ago
(*role) is not a reference at all, it is a value. its type is Role.
- remram 5y agolvalue not mutable reference, got it. I'm surprised there are contexts where one is fine but the other is UB, but I understand the rule.