Fix test to use &mut rather than &. Closes #30
authorLukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com>
Wed, 22 May 2024 09:11:05 +0000 (11:11 +0200)
committerLukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com>
Wed, 22 May 2024 09:11:05 +0000 (11:11 +0200)
exercises/03_ticket_v1/10_references_in_memory/src/lib.rs

index 7305514..d580758 100644 (file)
@@ -18,7 +18,7 @@ mod tests {
 
     #[test]
     fn u64_mut_ref_size() {
-        assert_eq!(size_of::<&u64>(), todo!());
+        assert_eq!(size_of::<&mut u64>(), todo!());
     }
 
     #[test]