1 error: only a `panic!` in `if`-then statement
2 --> $DIR/if_then_panic.rs:19:5
4 LL | / if !a.is_empty() {
5 LL | | panic!("qaqaq{:?}", a);
7 | |_____^ help: try: `assert!(a.is_empty(), "qaqaq{:?}", a);`
9 = note: `-D clippy::if-then-panic` implied by `-D warnings`
11 error: only a `panic!` in `if`-then statement
12 --> $DIR/if_then_panic.rs:22:5
14 LL | / if !a.is_empty() {
15 LL | | panic!("qwqwq");
17 | |_____^ help: try: `assert!(a.is_empty(), "qwqwq");`
19 error: aborting due to 2 previous errors