2021-09-28 12:03:12 -05:00
|
|
|
error: only a `panic!` in `if`-then statement
|
2022-10-06 02:44:38 -05:00
|
|
|
--> $DIR/manual_assert.rs:31:5
|
2021-09-28 12:03:12 -05:00
|
|
|
|
|
|
|
|
LL | / if !a.is_empty() {
|
|
|
|
LL | | panic!("qaqaq{:?}", a);
|
|
|
|
LL | | }
|
2022-10-11 11:17:59 -05:00
|
|
|
| |_____^ help: try instead: `assert!(a.is_empty(), "qaqaq{:?}", a);`
|
2021-09-28 12:03:12 -05:00
|
|
|
|
|
2021-11-04 07:52:36 -05:00
|
|
|
= note: `-D clippy::manual-assert` implied by `-D warnings`
|
2021-09-28 12:03:12 -05:00
|
|
|
|
2022-02-10 11:40:06 -06:00
|
|
|
error: only a `panic!` in `if`-then statement
|
2022-10-06 02:44:38 -05:00
|
|
|
--> $DIR/manual_assert.rs:66:5
|
2022-02-10 11:40:06 -06:00
|
|
|
|
|
|
|
|
LL | / if a.is_empty() {
|
|
|
|
LL | | panic!("with expansion {}", one!())
|
|
|
|
LL | | }
|
2022-10-11 11:17:59 -05:00
|
|
|
| |_____^ help: try instead: `assert!(!a.is_empty(), "with expansion {}", one!());`
|
2022-10-06 02:44:38 -05:00
|
|
|
|
2022-10-23 08:18:45 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2021-09-28 12:03:12 -05:00
|
|
|
|