11error: only a `panic!` in `if`-then statement
2- --> $DIR/manual_assert.rs:31 :5
2+ --> $DIR/manual_assert.rs:30 :5
33 |
44LL | / if !a.is_empty() {
55LL | | panic!("qaqaq{:?}", a);
@@ -13,7 +13,7 @@ LL | assert!(a.is_empty(), "qaqaq{:?}", a);
1313 |
1414
1515error: only a `panic!` in `if`-then statement
16- --> $DIR/manual_assert.rs:34 :5
16+ --> $DIR/manual_assert.rs:33 :5
1717 |
1818LL | / if !a.is_empty() {
1919LL | | panic!("qwqwq");
@@ -26,7 +26,7 @@ LL | assert!(a.is_empty(), "qwqwq");
2626 |
2727
2828error: only a `panic!` in `if`-then statement
29- --> $DIR/manual_assert.rs:51 :5
29+ --> $DIR/manual_assert.rs:50 :5
3030 |
3131LL | / if b.is_empty() {
3232LL | | panic!("panic1");
@@ -39,7 +39,7 @@ LL | assert!(!b.is_empty(), "panic1");
3939 |
4040
4141error: only a `panic!` in `if`-then statement
42- --> $DIR/manual_assert.rs:54 :5
42+ --> $DIR/manual_assert.rs:53 :5
4343 |
4444LL | / if b.is_empty() && a.is_empty() {
4545LL | | panic!("panic2");
@@ -52,7 +52,7 @@ LL | assert!(!(b.is_empty() && a.is_empty()), "panic2");
5252 |
5353
5454error: only a `panic!` in `if`-then statement
55- --> $DIR/manual_assert.rs:57 :5
55+ --> $DIR/manual_assert.rs:56 :5
5656 |
5757LL | / if a.is_empty() && !b.is_empty() {
5858LL | | panic!("panic3");
@@ -65,7 +65,7 @@ LL | assert!(!(a.is_empty() && !b.is_empty()), "panic3");
6565 |
6666
6767error: only a `panic!` in `if`-then statement
68- --> $DIR/manual_assert.rs:60 :5
68+ --> $DIR/manual_assert.rs:59 :5
6969 |
7070LL | / if b.is_empty() || a.is_empty() {
7171LL | | panic!("panic4");
@@ -78,7 +78,7 @@ LL | assert!(!(b.is_empty() || a.is_empty()), "panic4");
7878 |
7979
8080error: only a `panic!` in `if`-then statement
81- --> $DIR/manual_assert.rs:63 :5
81+ --> $DIR/manual_assert.rs:62 :5
8282 |
8383LL | / if a.is_empty() || !b.is_empty() {
8484LL | | panic!("panic5");
@@ -91,7 +91,7 @@ LL | assert!(!(a.is_empty() || !b.is_empty()), "panic5");
9191 |
9292
9393error: only a `panic!` in `if`-then statement
94- --> $DIR/manual_assert.rs:66 :5
94+ --> $DIR/manual_assert.rs:65 :5
9595 |
9696LL | / if a.is_empty() {
9797LL | | panic!("with expansion {}", one!())
@@ -104,9 +104,9 @@ LL | assert!(!a.is_empty(), "with expansion {}", one!());
104104 |
105105
106106error: only a `panic!` in `if`-then statement
107- --> $DIR/manual_assert.rs:73 :5
107+ --> $DIR/manual_assert.rs:72 :5
108108 |
109- LL | / if true {
109+ LL | / if a > 2 {
110110LL | | // comment
111111LL | | /* this is a
112112LL | | multiline
@@ -117,7 +117,7 @@ LL | | }
117117 |
118118help: try instead
119119 |
120- LL | assert!(!true , "panic with comment");
120+ LL | assert!(!(a > 2) , "panic with comment");
121121 |
122122
123123error: aborting due to 9 previous errors
0 commit comments