diff options
Diffstat (limited to 'meap/meap-code/ch4/ch4-rc-groundstation.rs')
-rw-r--r-- | meap/meap-code/ch4/ch4-rc-groundstation.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meap/meap-code/ch4/ch4-rc-groundstation.rs b/meap/meap-code/ch4/ch4-rc-groundstation.rs new file mode 100644 index 0000000..c51f865 --- /dev/null +++ b/meap/meap-code/ch4/ch4-rc-groundstation.rs @@ -0,0 +1,10 @@ +use std::rc::Rc;
+
+#[derive(Debug)]
+struct GroundStation {}
+
+fn main() {
+ let base: Rc<GroundStation> = Rc::new(GroundStation {});
+
+ println!("{:?}", base);
+}
\ No newline at end of file |