1 error: only a `panic!` in `if`-then statement
2 --> $DIR/manual_assert.rs:31:5
4 LL | / if !a.is_empty() {
5 LL | | panic!("qaqaq{:?}", a);
9 = note: `-D clippy::manual-assert` implied by `-D warnings`
12 LL | assert!(a.is_empty(), "qaqaq{:?}", a);
15 error: only a `panic!` in `if`-then statement
16 --> $DIR/manual_assert.rs:34:5
18 LL | / if !a.is_empty() {
19 LL | | panic!("qwqwq");
25 LL | assert!(a.is_empty(), "qwqwq");
28 error: only a `panic!` in `if`-then statement
29 --> $DIR/manual_assert.rs:51:5
31 LL | / if b.is_empty() {
32 LL | | panic!("panic1");
38 LL | assert!(!b.is_empty(), "panic1");
41 error: only a `panic!` in `if`-then statement
42 --> $DIR/manual_assert.rs:54:5
44 LL | / if b.is_empty() && a.is_empty() {
45 LL | | panic!("panic2");
51 LL | assert!(!(b.is_empty() && a.is_empty()), "panic2");
54 error: only a `panic!` in `if`-then statement
55 --> $DIR/manual_assert.rs:57:5
57 LL | / if a.is_empty() && !b.is_empty() {
58 LL | | panic!("panic3");
64 LL | assert!(!(a.is_empty() && !b.is_empty()), "panic3");
67 error: only a `panic!` in `if`-then statement
68 --> $DIR/manual_assert.rs:60:5
70 LL | / if b.is_empty() || a.is_empty() {
71 LL | | panic!("panic4");
77 LL | assert!(!(b.is_empty() || a.is_empty()), "panic4");
80 error: only a `panic!` in `if`-then statement
81 --> $DIR/manual_assert.rs:63:5
83 LL | / if a.is_empty() || !b.is_empty() {
84 LL | | panic!("panic5");
90 LL | assert!(!(a.is_empty() || !b.is_empty()), "panic5");
93 error: only a `panic!` in `if`-then statement
94 --> $DIR/manual_assert.rs:66:5
96 LL | / if a.is_empty() {
97 LL | | panic!("with expansion {}", one!())
103 LL | assert!(!a.is_empty(), "with expansion {}", one!());
106 error: only a `panic!` in `if`-then statement
107 --> $DIR/manual_assert.rs:73:5
114 LL | | panic!("panic with comment") // comment after `panic!`
120 LL | assert!(!(a > 2), "panic with comment");
123 error: aborting due to 9 previous errors