]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/src/docs/panic.txt
:arrow_up: rust-analyzer
[rust.git] / src / tools / clippy / src / docs / panic.txt
1 ### What it does
2 Checks for usage of `panic!`.
3
4 ### Why is this bad?
5 `panic!` will stop the execution of the executable
6
7 ### Example
8 ```
9 panic!("even with a good reason");
10 ```