// This file MUST NOT compile -- verifies AC-015
// Identity fields are private and cannot be mutated after construction.
useapcore::context::Identity;usestd::collections::HashMap;fnmain(){letmut identity =Identity::new("user-1".to_string(),"user".to_string(),vec!["admin".to_string()],HashMap::new(),);
identity.roles =vec![];// ERROR: field `roles` is private
}