We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 63d8986 + d2abc35 commit 8b4562eCopy full SHA for 8b4562e
solutions/06_move_semantics/move_semantics4.rs
@@ -4,8 +4,6 @@ fn main() {
4
5
#[cfg(test)]
6
mod tests {
7
- // TODO: Fix the compiler errors only by reordering the lines in the test.
8
- // Don't add, change or remove any line.
9
#[test]
10
fn move_semantics4() {
11
let mut x = Vec::new();
solutions/19_smart_pointers/rc1.rs
@@ -63,12 +63,10 @@ mod tests {
63
println!("reference count = {}", Rc::strong_count(&sun)); // 7 references
64
saturn.details();
65
66
- // TODO
67
let uranus = Planet::Uranus(Rc::clone(&sun));
68
println!("reference count = {}", Rc::strong_count(&sun)); // 8 references
69
uranus.details();
70
71
72
let neptune = Planet::Neptune(Rc::clone(&sun));
73
println!("reference count = {}", Rc::strong_count(&sun)); // 9 references
74
neptune.details();
0 commit comments