Skip to content

Commit 9ee7df1

Browse files
committed
Fix compile error in tests in Rust 1.34
1 parent 216c6f5 commit 9ee7df1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ fn not_nan_usage_in_const_context() {
595595
fn not_nan_panic_safety() {
596596
let catch_op = |mut num, op: fn(&mut NotNan<_>)| {
597597
let mut num_ref = panic::AssertUnwindSafe(&mut num);
598-
let _ = panic::catch_unwind(move || op(*num_ref));
598+
let _ = panic::catch_unwind(move || op(&mut *num_ref));
599599
num
600600
};
601601

0 commit comments

Comments
 (0)