1
0
Fork 0
mirror of https://github.com/notohh/rustlings.git synced 2025-08-22 01:33:36 -04:00

Convert other exercises that have assertions to test mode

This commit is contained in:
mo8it 2023-08-27 01:06:01 +02:00
commit 193b600382
4 changed files with 6 additions and 3 deletions
exercises/smart_pointers

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