Progress: finished primitive types, vecs, movesematics. progress structs

This commit is contained in:
2026-07-10 23:35:48 +02:00
parent 1c85acbd7e
commit ab5b9bff14
15 changed files with 92 additions and 12 deletions
+6
View File
@@ -36,6 +36,12 @@ mod tests {
// TODO: Create your own order using the update syntax and template above!
// let your_order =
let your_order = Order {
name: "Hacker in Rust".to_string(),
count: 1,
..order_template
};
assert_eq!(your_order.name, "Hacker in Rust");
assert_eq!(your_order.year, order_template.year);
assert_eq!(your_order.made_by_phone, order_template.made_by_phone);