1- error: assert!(true) will be optimized out by the compiler
1+ error: ` assert!(true)` will be optimized out by the compiler
22 --> $DIR/assertions_on_constants.rs:9:5
33 |
44LL | assert!(true);
@@ -7,47 +7,47 @@ LL | assert!(true);
77 = note: `-D clippy::assertions-on-constants` implied by `-D warnings`
88 = help: remove it
99
10- error: assert!(false) should probably be replaced
10+ error: ` assert!(false)` should probably be replaced
1111 --> $DIR/assertions_on_constants.rs:10:5
1212 |
1313LL | assert!(false);
1414 | ^^^^^^^^^^^^^^^
1515 |
16- = help: use panic!() or unreachable!()
16+ = help: use ` panic!()` or ` unreachable!()`
1717
18- error: assert!(true) will be optimized out by the compiler
18+ error: ` assert!(true)` will be optimized out by the compiler
1919 --> $DIR/assertions_on_constants.rs:11:5
2020 |
2121LL | assert!(true, "true message");
2222 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2323 |
2424 = help: remove it
2525
26- error: assert!(false) should probably be replaced
26+ error: ` assert!(false)` should probably be replaced
2727 --> $DIR/assertions_on_constants.rs:12:5
2828 |
2929LL | assert!(false, "false message");
3030 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3131 |
32- = help: use panic!() or unreachable!()
32+ = help: use ` panic!()` or ` unreachable!()`
3333
34- error: assert!(const: true) will be optimized out by the compiler
34+ error: ` assert!(true)` will be optimized out by the compiler
3535 --> $DIR/assertions_on_constants.rs:15:5
3636 |
3737LL | assert!(B);
3838 | ^^^^^^^^^^^
3939 |
4040 = help: remove it
4141
42- error: assert!(const: false) should probably be replaced
42+ error: ` assert!(false)` should probably be replaced
4343 --> $DIR/assertions_on_constants.rs:18:5
4444 |
4545LL | assert!(C);
4646 | ^^^^^^^^^^^
4747 |
48- = help: use panic!() or unreachable!()
48+ = help: use ` panic!()` or ` unreachable!()`
4949
50- error: assert!(true) will be optimized out by the compiler
50+ error: ` assert!(true)` will be optimized out by the compiler
5151 --> $DIR/assertions_on_constants.rs:20:5
5252 |
5353LL | debug_assert!(true);
0 commit comments