@@ -25,32 +25,56 @@ LL | | } {}
25
25
error: `assert_eq` of unit values detected. This will always succeed
26
26
--> $DIR/unit_cmp.rs:24:5
27
27
|
28
- LL | assert_eq!((), ());
29
- | ^^^^^^^^^^^^^^^^^^^
28
+ LL | / assert_eq!(
29
+ LL | | {
30
+ LL | | true;
31
+ LL | | },
32
+ ... |
33
+ LL | | }
34
+ LL | | );
35
+ | |______^
30
36
|
31
37
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
32
38
33
39
error: `debug_assert_eq` of unit values detected. This will always succeed
34
- --> $DIR/unit_cmp.rs:25 :5
40
+ --> $DIR/unit_cmp.rs:32 :5
35
41
|
36
- LL | debug_assert_eq!((), ());
37
- | ^^^^^^^^^^^^^^^^^^^^^^^^^
42
+ LL | / debug_assert_eq!(
43
+ LL | | {
44
+ LL | | true;
45
+ LL | | },
46
+ ... |
47
+ LL | | }
48
+ LL | | );
49
+ | |______^
38
50
|
39
51
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
40
52
41
53
error: `assert_ne` of unit values detected. This will always fail
42
- --> $DIR/unit_cmp.rs:27 :5
54
+ --> $DIR/unit_cmp.rs:41 :5
43
55
|
44
- LL | assert_ne!((), ());
45
- | ^^^^^^^^^^^^^^^^^^^
56
+ LL | / assert_ne!(
57
+ LL | | {
58
+ LL | | true;
59
+ LL | | },
60
+ ... |
61
+ LL | | }
62
+ LL | | );
63
+ | |______^
46
64
|
47
65
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
48
66
49
67
error: `debug_assert_ne` of unit values detected. This will always fail
50
- --> $DIR/unit_cmp.rs:28 :5
68
+ --> $DIR/unit_cmp.rs:49 :5
51
69
|
52
- LL | debug_assert_ne!((), ());
53
- | ^^^^^^^^^^^^^^^^^^^^^^^^^
70
+ LL | / debug_assert_ne!(
71
+ LL | | {
72
+ LL | | true;
73
+ LL | | },
74
+ ... |
75
+ LL | | }
76
+ LL | | );
77
+ | |______^
54
78
|
55
79
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
56
80
0 commit comments