]> git.lizzy.rs Git - rust.git/blob - tests/ui/unit_cmp.stderr
Rustup https://github.com/rust-lang/rust/pull/67359
[rust.git] / tests / ui / unit_cmp.stderr
1 error: ==-comparison of unit values detected. This will always be true
2   --> $DIR/unit_cmp.rs:12:8
3    |
4 LL |       if {
5    |  ________^
6 LL | |         true;
7 LL | |     } == {
8 LL | |         false;
9 LL | |     } {}
10    | |_____^
11    |
12    = note: `-D clippy::unit-cmp` implied by `-D warnings`
13
14 error: >-comparison of unit values detected. This will always be false
15   --> $DIR/unit_cmp.rs:18:8
16    |
17 LL |       if {
18    |  ________^
19 LL | |         true;
20 LL | |     } > {
21 LL | |         false;
22 LL | |     } {}
23    | |_____^
24
25 error: `assert_eq` of unit values detected. This will always succeed
26   --> $DIR/unit_cmp.rs:24:5
27    |
28 LL | /     assert_eq!(
29 LL | |         {
30 LL | |             true;
31 LL | |         },
32 ...  |
33 LL | |         }
34 LL | |     );
35    | |______^
36    |
37    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
38
39 error: `debug_assert_eq` of unit values detected. This will always succeed
40   --> $DIR/unit_cmp.rs:32:5
41    |
42 LL | /     debug_assert_eq!(
43 LL | |         {
44 LL | |             true;
45 LL | |         },
46 ...  |
47 LL | |         }
48 LL | |     );
49    | |______^
50    |
51    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
52
53 error: `assert_ne` of unit values detected. This will always fail
54   --> $DIR/unit_cmp.rs:41:5
55    |
56 LL | /     assert_ne!(
57 LL | |         {
58 LL | |             true;
59 LL | |         },
60 ...  |
61 LL | |         }
62 LL | |     );
63    | |______^
64    |
65    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
66
67 error: `debug_assert_ne` of unit values detected. This will always fail
68   --> $DIR/unit_cmp.rs:49:5
69    |
70 LL | /     debug_assert_ne!(
71 LL | |         {
72 LL | |             true;
73 LL | |         },
74 ...  |
75 LL | |         }
76 LL | |     );
77    | |______^
78    |
79    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
80
81 error: aborting due to 6 previous errors
82