From: LukeMathWalker <20745048+LukeMathWalker@users.noreply.github.com> Date: Wed, 22 May 2024 09:11:05 +0000 (+0200) Subject: Fix test to use &mut rather than &. Closes #30 X-Git-Url: http://git.euphorik.ch/index.cgi?a=commitdiff_plain;h=b54b0b70232ff87ce9fd00b3d356748975d74485;p=rust_exercises.git Fix test to use &mut rather than &. Closes #30 --- diff --git a/exercises/03_ticket_v1/10_references_in_memory/src/lib.rs b/exercises/03_ticket_v1/10_references_in_memory/src/lib.rs index 7305514..d580758 100644 --- a/exercises/03_ticket_v1/10_references_in_memory/src/lib.rs +++ b/exercises/03_ticket_v1/10_references_in_memory/src/lib.rs @@ -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]