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 a macro (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 a macro (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 a macro (in Nightly builds, run with -Z macro-backtrace for more info)
29 error: `assert!(false, "false message")` should probably be replaced
30 --> $DIR/assertions_on_constants.rs:14:5
32 LL | assert!(false, "false message");
33 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
35 = help: use `panic!("false message")` or `unreachable!("false message")`
36 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
38 error: `assert!(false, msg.to_uppercase())` should probably be replaced
39 --> $DIR/assertions_on_constants.rs:17:5
41 LL | assert!(false, msg.to_uppercase());
42 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44 = help: use `panic!(msg.to_uppercase())` or `unreachable!(msg.to_uppercase())`
45 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
47 error: `assert!(true)` will be optimized out by the compiler
48 --> $DIR/assertions_on_constants.rs:20:5
54 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
56 error: `assert!(false)` should probably be replaced
57 --> $DIR/assertions_on_constants.rs:23:5
62 = help: use `panic!()` or `unreachable!()`
63 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
65 error: `assert!(false, "C message")` should probably be replaced
66 --> $DIR/assertions_on_constants.rs:24:5
68 LL | assert!(C, "C message");
69 | ^^^^^^^^^^^^^^^^^^^^^^^^
71 = help: use `panic!("C message")` or `unreachable!("C message")`
72 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
74 error: `debug_assert!(true)` will be optimized out by the compiler
75 --> $DIR/assertions_on_constants.rs:26:5
77 LL | debug_assert!(true);
78 | ^^^^^^^^^^^^^^^^^^^^
81 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
83 error: aborting due to 9 previous errors