summaryrefslogtreecommitdiff
path: root/ex3_9/src/main.rs
diff options
context:
space:
mode:
authorBrad Clawsie <brad@b7j0c.org>2026-11-02 13:09:22 -0600
committerBrad Clawsie <brad@b7j0c.org>2026-11-02 13:09:22 -0600
commit98fc53dec43f84906f737bb3473bf65c09fc5450 (patch)
tree6e1e539645f781b9077e38b3dc83e7c70c19936f /ex3_9/src/main.rs
parentdfdfb97810d3710cf1d9a44400ad70ac5833a38b (diff)
feat: ex3_9
commit 8a009a61bbf5ee2e4f7170e3e0e3fda773fe2db6 Author: Brad Clawsie <brad@b7j0c.org> Date: Mon Nov 2 13:08:44 2026 -0600 feat: ex3_9
Diffstat (limited to 'ex3_9/src/main.rs')
-rw-r--r--ex3_9/src/main.rs28
1 files changed, 28 insertions, 0 deletions
diff --git a/ex3_9/src/main.rs b/ex3_9/src/main.rs
new file mode 100644
index 0000000..d26f6da
--- /dev/null
+++ b/ex3_9/src/main.rs
@@ -0,0 +1,28 @@
+pub struct Ticket {
+ title: String,
+ description: String,
+ status: String,
+}
+
+fn main() {
+ println!("Hello, world!");
+}
+
+#[cfg(test)]
+mod tests {
+ use crate::*;
+ use std::mem::size_of;
+
+ #[test]
+ fn t0() {
+ let mut t = Ticket{
+ title:String::from("title"),
+ description:String::from("desc"),
+ status:String::from("status"),
+ };
+
+ println!("{:?}", size_of::<String>());
+ println!("{:?}", size_of::<Ticket>());
+ assert_eq!(true, true);
+ }
+}