Skip to content

Commit 49a101b

Browse files
Merge pull request rust-lang#1192 from aaarkid/patch-1
fix: Add a deref in the test code
2 parents 53b8715 + 34ed235 commit 49a101b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/conversions/as_ref_mut.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ mod tests {
5454
#[test]
5555
fn mult_box() {
5656
let mut num: Box<u32> = Box::new(3);
57-
num_sq(&mut num);
57+
num_sq(&mut *num);
5858
assert_eq!(*num, 9);
5959
}
6060
}

0 commit comments

Comments
 (0)