]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-integer-bool-ops.stderr
Do not suggest `let_else` if no bindings would be introduced
[rust.git] / src / test / ui / consts / const-integer-bool-ops.stderr
1 error[E0308]: mismatched types
2   --> $DIR/const-integer-bool-ops.rs:1:18
3    |
4 LL | const X: usize = 42 && 39;
5    |                  ^^ expected `bool`, found integer
6
7 error[E0308]: mismatched types
8   --> $DIR/const-integer-bool-ops.rs:1:24
9    |
10 LL | const X: usize = 42 && 39;
11    |                        ^^ expected `bool`, found integer
12
13 error[E0308]: mismatched types
14   --> $DIR/const-integer-bool-ops.rs:1:18
15    |
16 LL | const X: usize = 42 && 39;
17    |                  ^^^^^^^^ expected `usize`, found `bool`
18
19 error[E0308]: mismatched types
20   --> $DIR/const-integer-bool-ops.rs:10:19
21    |
22 LL | const X1: usize = 42 || 39;
23    |                   ^^ expected `bool`, found integer
24
25 error[E0308]: mismatched types
26   --> $DIR/const-integer-bool-ops.rs:10:25
27    |
28 LL | const X1: usize = 42 || 39;
29    |                         ^^ expected `bool`, found integer
30
31 error[E0308]: mismatched types
32   --> $DIR/const-integer-bool-ops.rs:10:19
33    |
34 LL | const X1: usize = 42 || 39;
35    |                   ^^^^^^^^ expected `usize`, found `bool`
36
37 error[E0308]: mismatched types
38   --> $DIR/const-integer-bool-ops.rs:19:19
39    |
40 LL | const X2: usize = -42 || -39;
41    |                   ^^^ expected `bool`, found integer
42
43 error[E0308]: mismatched types
44   --> $DIR/const-integer-bool-ops.rs:19:26
45    |
46 LL | const X2: usize = -42 || -39;
47    |                          ^^^ expected `bool`, found integer
48
49 error[E0308]: mismatched types
50   --> $DIR/const-integer-bool-ops.rs:19:19
51    |
52 LL | const X2: usize = -42 || -39;
53    |                   ^^^^^^^^^^ expected `usize`, found `bool`
54
55 error[E0308]: mismatched types
56   --> $DIR/const-integer-bool-ops.rs:28:19
57    |
58 LL | const X3: usize = -42 && -39;
59    |                   ^^^ expected `bool`, found integer
60
61 error[E0308]: mismatched types
62   --> $DIR/const-integer-bool-ops.rs:28:26
63    |
64 LL | const X3: usize = -42 && -39;
65    |                          ^^^ expected `bool`, found integer
66
67 error[E0308]: mismatched types
68   --> $DIR/const-integer-bool-ops.rs:28:19
69    |
70 LL | const X3: usize = -42 && -39;
71    |                   ^^^^^^^^^^ expected `usize`, found `bool`
72
73 error[E0308]: mismatched types
74   --> $DIR/const-integer-bool-ops.rs:37:18
75    |
76 LL | const Y: usize = 42.0 == 42.0;
77    |                  ^^^^^^^^^^^^ expected `usize`, found `bool`
78
79 error[E0308]: mismatched types
80   --> $DIR/const-integer-bool-ops.rs:42:19
81    |
82 LL | const Y1: usize = 42.0 >= 42.0;
83    |                   ^^^^^^^^^^^^ expected `usize`, found `bool`
84
85 error[E0308]: mismatched types
86   --> $DIR/const-integer-bool-ops.rs:47:19
87    |
88 LL | const Y2: usize = 42.0 <= 42.0;
89    |                   ^^^^^^^^^^^^ expected `usize`, found `bool`
90
91 error[E0308]: mismatched types
92   --> $DIR/const-integer-bool-ops.rs:52:19
93    |
94 LL | const Y3: usize = 42.0 > 42.0;
95    |                   ^^^^^^^^^^^ expected `usize`, found `bool`
96
97 error[E0308]: mismatched types
98   --> $DIR/const-integer-bool-ops.rs:57:19
99    |
100 LL | const Y4: usize = 42.0 < 42.0;
101    |                   ^^^^^^^^^^^ expected `usize`, found `bool`
102
103 error[E0308]: mismatched types
104   --> $DIR/const-integer-bool-ops.rs:62:19
105    |
106 LL | const Y5: usize = 42.0 != 42.0;
107    |                   ^^^^^^^^^^^^ expected `usize`, found `bool`
108
109 error: aborting due to 18 previous errors
110
111 For more information about this error, try `rustc --explain E0308`.