diff --git a/rational/src/lib.rs b/rational/src/lib.rs index 6ba54db..ce88516 100644 --- a/rational/src/lib.rs +++ b/rational/src/lib.rs @@ -1048,7 +1048,7 @@ mod test { } #[test] - #[should_panic = "== 0"] + #[should_panic(expected = "== 0")] fn test_recip_fail() { let _a = Ratio::new(0, 1).recip(); }