diff --git a/tests/pin_project.rs b/tests/pin_project.rs index 69c90bcb..aa08056e 100644 --- a/tests/pin_project.rs +++ b/tests/pin_project.rs @@ -861,7 +861,7 @@ fn project_replace_panic() { // called, so this is unreachable. unreachable!(); })); - res.unwrap_err(); + assert!(res.is_err()); assert!(a); assert!(b); assert!(c); @@ -879,7 +879,7 @@ fn project_replace_panic() { } unreachable!(); })); - res.unwrap_err(); + assert!(res.is_err()); assert!(a); assert!(b); assert!(c);