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