2 Checks for usage of `panic!`, `unimplemented!`, `todo!`, `unreachable!` or assertions in a function of type result.
5 For some codebases, it is desirable for functions of type result to return an error instead of crashing. Hence panicking macros should be avoided.
8 Functions called from a function returning a `Result` may invoke a panicking macro. This is not checked.
12 fn result_with_panic() -> Result<bool, String>
19 fn result_without_panic() -> Result<bool, String> {
20 Err(String::from("error"))