1 error: `assert!(true)` will be optimized out by the compiler
2 --> $DIR/assertions_on_constants.rs:10:5
8 = note: `-D clippy::assertions-on-constants` implied by `-D warnings`
10 error: `assert!(false)` should probably be replaced
11 --> $DIR/assertions_on_constants.rs:11:5
16 = help: use `panic!()` or `unreachable!()`
18 error: `assert!(true)` will be optimized out by the compiler
19 --> $DIR/assertions_on_constants.rs:12:5
21 LL | assert!(true, "true message");
22 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26 error: `assert!(false, ..)` should probably be replaced
27 --> $DIR/assertions_on_constants.rs:13:5
29 LL | assert!(false, "false message");
30 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32 = help: use `panic!(..)` or `unreachable!(..)`
34 error: `assert!(false, ..)` should probably be replaced
35 --> $DIR/assertions_on_constants.rs:16:5
37 LL | assert!(false, "{}", msg.to_uppercase());
38 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40 = help: use `panic!(..)` or `unreachable!(..)`
42 error: `assert!(true)` will be optimized out by the compiler
43 --> $DIR/assertions_on_constants.rs:19:5
50 error: `assert!(false)` should probably be replaced
51 --> $DIR/assertions_on_constants.rs:22:5
56 = help: use `panic!()` or `unreachable!()`
58 error: `assert!(false, ..)` should probably be replaced
59 --> $DIR/assertions_on_constants.rs:23:5
61 LL | assert!(C, "C message");
62 | ^^^^^^^^^^^^^^^^^^^^^^^
64 = help: use `panic!(..)` or `unreachable!(..)`
66 error: `debug_assert!(true)` will be optimized out by the compiler
67 --> $DIR/assertions_on_constants.rs:25:5
69 LL | debug_assert!(true);
74 error: aborting due to 9 previous errors