2021-09-14 03:28:09 -05:00
|
|
|
error: only a `panic!` in `if`-then statement
|
2022-10-02 14:13:22 -05:00
|
|
|
--> $DIR/manual_assert.rs:31:5
|
2021-09-14 03:28:09 -05:00
|
|
|
|
|
|
|
|
LL | / if !a.is_empty() {
|
|
|
|
LL | | panic!("qaqaq{:?}", a);
|
|
|
|
LL | | }
|
2022-09-14 04:58:41 -05:00
|
|
|
| |_____^
|
2021-09-14 03:28:09 -05:00
|
|
|
|
|
2021-10-12 09:23:05 -05:00
|
|
|
= note: `-D clippy::manual-assert` implied by `-D warnings`
|
2022-09-14 04:58:41 -05:00
|
|
|
help: try instead
|
|
|
|
|
|
2022-09-16 14:38:56 -05:00
|
|
|
LL | assert!(a.is_empty(), "qaqaq{:?}", a);
|
2022-09-14 04:58:41 -05:00
|
|
|
|
|
2021-09-14 03:28:09 -05:00
|
|
|
|
2022-01-28 08:42:19 -06:00
|
|
|
error: only a `panic!` in `if`-then statement
|
2022-10-02 14:13:22 -05:00
|
|
|
--> $DIR/manual_assert.rs:66:5
|
2022-01-28 08:42:19 -06:00
|
|
|
|
|
|
|
|
LL | / if a.is_empty() {
|
|
|
|
LL | | panic!("with expansion {}", one!())
|
|
|
|
LL | | }
|
2022-09-14 04:58:41 -05:00
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
help: try instead
|
|
|
|
|
|
|
|
|
LL | assert!(!a.is_empty(), "with expansion {}", one!());
|
|
|
|
|
|
|
|
|
|
2022-10-13 06:40:13 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2021-09-14 03:28:09 -05:00
|
|
|
|