1 error: `assert!(true)` will be optimized out by the compiler
2 --> $DIR/assertions_on_constants.rs:11:5
7 = note: `-D clippy::assertions-on-constants` implied by `-D warnings`
9 = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
11 error: `assert!(false)` should probably be replaced
12 --> $DIR/assertions_on_constants.rs:12:5
17 = help: use `panic!()` or `unreachable!()`
18 = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
20 error: `assert!(true)` will be optimized out by the compiler
21 --> $DIR/assertions_on_constants.rs:13:5
23 LL | assert!(true, "true message");
24 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27 = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
29 error: `assert!(false, $crate::const_format_args!($($t)+))` should probably be replaced
30 --> $DIR/assertions_on_constants.rs:14:5
32 LL | assert!(false, "false message");
33 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
35 = help: use `panic!($crate::const_format_args!($($t)+))` or `unreachable!($crate::const_format_args!($($t)+))`
36 = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
38 error: `assert!(true)` will be optimized out by the compiler
39 --> $DIR/assertions_on_constants.rs:20:5
45 = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
47 error: `assert!(false)` should probably be replaced
48 --> $DIR/assertions_on_constants.rs:23:5
53 = help: use `panic!()` or `unreachable!()`
54 = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
56 error: `assert!(false, $crate::const_format_args!($($t)+))` should probably be replaced
57 --> $DIR/assertions_on_constants.rs:24:5
59 LL | assert!(C, "C message");
60 | ^^^^^^^^^^^^^^^^^^^^^^^
62 = help: use `panic!($crate::const_format_args!($($t)+))` or `unreachable!($crate::const_format_args!($($t)+))`
63 = note: this error originates in the macro `assert` (in Nightly builds, run with -Z macro-backtrace for more info)
65 error: `debug_assert!(true)` will be optimized out by the compiler
66 --> $DIR/assertions_on_constants.rs:26:5
68 LL | debug_assert!(true);
72 = note: this error originates in the macro `$crate::assert` (in Nightly builds, run with -Z macro-backtrace for more info)
74 error: aborting due to 8 previous errors