blob: c599c9d602a3a30bff8b4ae29bb9316248733cba [file] [log] [blame]
struct User {
username: String,
email: String,
sign_in_count: u64,
active: bool,
}
fn main() {
// ANCHOR: here
let mut user1 = User {
email: String::from("someone@example.com"),
username: String::from("someusername123"),
active: true,
sign_in_count: 1,
};
user1.email = String::from("anotheremail@example.com");
// ANCHOR_END: here
}