1 error: only a `panic!` in `if`-then statement
2 --> $DIR/manual_assert.rs:24: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::manual-assert` implied by `-D warnings`
11 error: only a `panic!` in `if`-then statement
12 --> $DIR/manual_assert.rs:27:5
14 LL | / if !a.is_empty() {
15 LL | | panic!("qwqwq");
17 | |_____^ help: try: `assert!(a.is_empty(), "qwqwq");`
19 error: only a `panic!` in `if`-then statement
20 --> $DIR/manual_assert.rs:44:5
22 LL | / if b.is_empty() {
23 LL | | panic!("panic1");
25 | |_____^ help: try: `assert!(!b.is_empty(), "panic1");`
27 error: only a `panic!` in `if`-then statement
28 --> $DIR/manual_assert.rs:47:5
30 LL | / if b.is_empty() && a.is_empty() {
31 LL | | panic!("panic2");
33 | |_____^ help: try: `assert!(!(b.is_empty() && a.is_empty()), "panic2");`
35 error: only a `panic!` in `if`-then statement
36 --> $DIR/manual_assert.rs:50:5
38 LL | / if a.is_empty() && !b.is_empty() {
39 LL | | panic!("panic3");
41 | |_____^ help: try: `assert!(!(a.is_empty() && !b.is_empty()), "panic3");`
43 error: only a `panic!` in `if`-then statement
44 --> $DIR/manual_assert.rs:53:5
46 LL | / if b.is_empty() || a.is_empty() {
47 LL | | panic!("panic4");
49 | |_____^ help: try: `assert!(!(b.is_empty() || a.is_empty()), "panic4");`
51 error: only a `panic!` in `if`-then statement
52 --> $DIR/manual_assert.rs:56:5
54 LL | / if a.is_empty() || !b.is_empty() {
55 LL | | panic!("panic5");
57 | |_____^ help: try: `assert!(!(a.is_empty() || !b.is_empty()), "panic5");`
59 error: aborting due to 7 previous errors