Merge pull request #1641 from mo8it/move-semantics5-test

Convert exercises with assertions to tests
This commit is contained in:
liv authored and GitHub committed 2023-09-06 09:31:46 +02:00
commit 4d04aad890
6 files changed
+9 -5

No files matched your search

+1
View File
@@ -35,6 +35,7 @@ impl Planet {
}
}
#[test]
fn main() {
let sun = Rc::new(Sun {});
println!("reference count = {}", Rc::strong_count(&sun)); // 1 reference