(self)
| 192 | /// ``` |
| 193 | #[track_caller] |
| 194 | pub fn failure(self) -> Self { |
| 195 | match self.try_failure() { |
| 196 | Ok(v) => v, |
| 197 | // Called manually so `#[track_caller]` is effective. |
| 198 | Err(e) => e.panic(), |
| 199 | } |
| 200 | } |
| 201 | |
| 202 | /// Variant of [`Assert::failure`] that returns an [`AssertResult`]. |
| 203 | pub fn try_failure(self) -> AssertResult { |