Macro vipers::assert_throws
source · [−]macro_rules! assert_throws {
($body: block, $right: expr $(,)?) => { ... };
}
Expand description
Asserts that the given assertion block throws a specific error.
Recommended for use in tests only.