We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 216c6f5 commit 9ee7df1Copy full SHA for 9ee7df1
tests/test.rs
@@ -595,7 +595,7 @@ fn not_nan_usage_in_const_context() {
595
fn not_nan_panic_safety() {
596
let catch_op = |mut num, op: fn(&mut NotNan<_>)| {
597
let mut num_ref = panic::AssertUnwindSafe(&mut num);
598
- let _ = panic::catch_unwind(move || op(*num_ref));
+ let _ = panic::catch_unwind(move || op(&mut *num_ref));
599
num
600
};
601
0 commit comments