typo; emphasis
[rust-101.git] / solutions / src / callbacks.rs
index a42732dc2e5e88bc5a0faeb22e609da0e57bec75..2b0eeefaa71b49452ed745751941fe1b81d8c55b 100644 (file)
@@ -65,6 +65,7 @@ mod tests {
         // We do a clone, and call `call` on that one. This makes sure that it's not our `RefCell` that complains about two mutable borrows,
         // but rather the `RefCell` inside the `CallbacksMut`.
         let mut c2: Callbacks = c.borrow().clone();
+        drop(c);
         c2.call(42);
     }
 }
\ No newline at end of file