1
- error: assert!(true) will be optimized out by the compiler
1
+ error: ` assert!(true)` will be optimized out by the compiler
2
2
--> $DIR/assertions_on_constants.rs:9:5
3
3
|
4
4
LL | assert!(true);
@@ -7,47 +7,47 @@ LL | assert!(true);
7
7
= note: `-D clippy::assertions-on-constants` implied by `-D warnings`
8
8
= help: remove it
9
9
10
- error: assert!(false) should probably be replaced
10
+ error: ` assert!(false)` should probably be replaced
11
11
--> $DIR/assertions_on_constants.rs:10:5
12
12
|
13
13
LL | assert!(false);
14
14
| ^^^^^^^^^^^^^^^
15
15
|
16
- = help: use panic!() or unreachable!()
16
+ = help: use ` panic!()` or ` unreachable!()`
17
17
18
- error: assert!(true) will be optimized out by the compiler
18
+ error: ` assert!(true)` will be optimized out by the compiler
19
19
--> $DIR/assertions_on_constants.rs:11:5
20
20
|
21
21
LL | assert!(true, "true message");
22
22
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23
23
|
24
24
= help: remove it
25
25
26
- error: assert!(false) should probably be replaced
26
+ error: ` assert!(false)` should probably be replaced
27
27
--> $DIR/assertions_on_constants.rs:12:5
28
28
|
29
29
LL | assert!(false, "false message");
30
30
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31
31
|
32
- = help: use panic!() or unreachable!()
32
+ = help: use ` panic!()` or ` unreachable!()`
33
33
34
- error: assert!(const: true) will be optimized out by the compiler
34
+ error: ` assert!(true)` will be optimized out by the compiler
35
35
--> $DIR/assertions_on_constants.rs:15:5
36
36
|
37
37
LL | assert!(B);
38
38
| ^^^^^^^^^^^
39
39
|
40
40
= help: remove it
41
41
42
- error: assert!(const: false) should probably be replaced
42
+ error: ` assert!(false)` should probably be replaced
43
43
--> $DIR/assertions_on_constants.rs:18:5
44
44
|
45
45
LL | assert!(C);
46
46
| ^^^^^^^^^^^
47
47
|
48
- = help: use panic!() or unreachable!()
48
+ = help: use ` panic!()` or ` unreachable!()`
49
49
50
- error: assert!(true) will be optimized out by the compiler
50
+ error: ` assert!(true)` will be optimized out by the compiler
51
51
--> $DIR/assertions_on_constants.rs:20:5
52
52
|
53
53
LL | debug_assert!(true);
0 commit comments