1 error[E0308]: mismatched types
2 --> $DIR/const-integer-bool-ops.rs:11:18
4 LL | const X: usize = 42 && 39;
5 | ^^ expected bool, found integral variable
7 = note: expected type `bool`
10 error[E0308]: mismatched types
11 --> $DIR/const-integer-bool-ops.rs:11:24
13 LL | const X: usize = 42 && 39;
14 | ^^ expected bool, found integral variable
16 = note: expected type `bool`
17 found type `{integer}`
19 error[E0308]: mismatched types
20 --> $DIR/const-integer-bool-ops.rs:11:18
22 LL | const X: usize = 42 && 39;
23 | ^^^^^^^^ expected usize, found bool
25 error[E0080]: evaluation of constant value failed
26 --> $DIR/const-integer-bool-ops.rs:18:18
28 LL | const ARR: [i32; X] = [99; 34];
29 | ^ referenced constant has errors
31 error[E0308]: mismatched types
32 --> $DIR/const-integer-bool-ops.rs:21:19
34 LL | const X1: usize = 42 || 39;
35 | ^^ expected bool, found integral variable
37 = note: expected type `bool`
38 found type `{integer}`
40 error[E0308]: mismatched types
41 --> $DIR/const-integer-bool-ops.rs:21:25
43 LL | const X1: usize = 42 || 39;
44 | ^^ expected bool, found integral variable
46 = note: expected type `bool`
47 found type `{integer}`
49 error[E0308]: mismatched types
50 --> $DIR/const-integer-bool-ops.rs:21:19
52 LL | const X1: usize = 42 || 39;
53 | ^^^^^^^^ expected usize, found bool
55 error[E0080]: evaluation of constant value failed
56 --> $DIR/const-integer-bool-ops.rs:28:19
58 LL | const ARR1: [i32; X1] = [99; 47];
59 | ^^ referenced constant has errors
61 error[E0308]: mismatched types
62 --> $DIR/const-integer-bool-ops.rs:31:19
64 LL | const X2: usize = -42 || -39;
65 | ^^^ expected bool, found integral variable
67 = note: expected type `bool`
68 found type `{integer}`
70 error[E0308]: mismatched types
71 --> $DIR/const-integer-bool-ops.rs:31:26
73 LL | const X2: usize = -42 || -39;
74 | ^^^ expected bool, found integral variable
76 = note: expected type `bool`
77 found type `{integer}`
79 error[E0308]: mismatched types
80 --> $DIR/const-integer-bool-ops.rs:31:19
82 LL | const X2: usize = -42 || -39;
83 | ^^^^^^^^^^ expected usize, found bool
85 error[E0080]: evaluation of constant value failed
86 --> $DIR/const-integer-bool-ops.rs:38:19
88 LL | const ARR2: [i32; X2] = [99; 18446744073709551607];
89 | ^^ referenced constant has errors
91 error[E0308]: mismatched types
92 --> $DIR/const-integer-bool-ops.rs:41:19
94 LL | const X3: usize = -42 && -39;
95 | ^^^ expected bool, found integral variable
97 = note: expected type `bool`
98 found type `{integer}`
100 error[E0308]: mismatched types
101 --> $DIR/const-integer-bool-ops.rs:41:26
103 LL | const X3: usize = -42 && -39;
104 | ^^^ expected bool, found integral variable
106 = note: expected type `bool`
107 found type `{integer}`
109 error[E0308]: mismatched types
110 --> $DIR/const-integer-bool-ops.rs:41:19
112 LL | const X3: usize = -42 && -39;
113 | ^^^^^^^^^^ expected usize, found bool
115 error[E0080]: evaluation of constant value failed
116 --> $DIR/const-integer-bool-ops.rs:48:19
118 LL | const ARR3: [i32; X3] = [99; 6];
119 | ^^ referenced constant has errors
121 error[E0308]: mismatched types
122 --> $DIR/const-integer-bool-ops.rs:51:18
124 LL | const Y: usize = 42.0 == 42.0;
125 | ^^^^^^^^^^^^ expected usize, found bool
127 error[E0080]: evaluation of constant value failed
128 --> $DIR/const-integer-bool-ops.rs:54:19
130 LL | const ARRR: [i32; Y] = [99; 1];
131 | ^ referenced constant has errors
133 error[E0308]: mismatched types
134 --> $DIR/const-integer-bool-ops.rs:57:19
136 LL | const Y1: usize = 42.0 >= 42.0;
137 | ^^^^^^^^^^^^ expected usize, found bool
139 error[E0080]: evaluation of constant value failed
140 --> $DIR/const-integer-bool-ops.rs:60:20
142 LL | const ARRR1: [i32; Y1] = [99; 1];
143 | ^^ referenced constant has errors
145 error[E0308]: mismatched types
146 --> $DIR/const-integer-bool-ops.rs:63:19
148 LL | const Y2: usize = 42.0 <= 42.0;
149 | ^^^^^^^^^^^^ expected usize, found bool
151 error[E0080]: evaluation of constant value failed
152 --> $DIR/const-integer-bool-ops.rs:66:20
154 LL | const ARRR2: [i32; Y2] = [99; 1];
155 | ^^ referenced constant has errors
157 error[E0308]: mismatched types
158 --> $DIR/const-integer-bool-ops.rs:69:19
160 LL | const Y3: usize = 42.0 > 42.0;
161 | ^^^^^^^^^^^ expected usize, found bool
163 error[E0080]: evaluation of constant value failed
164 --> $DIR/const-integer-bool-ops.rs:72:20
166 LL | const ARRR3: [i32; Y3] = [99; 0];
167 | ^^ referenced constant has errors
169 error[E0308]: mismatched types
170 --> $DIR/const-integer-bool-ops.rs:75:19
172 LL | const Y4: usize = 42.0 < 42.0;
173 | ^^^^^^^^^^^ expected usize, found bool
175 error[E0080]: evaluation of constant value failed
176 --> $DIR/const-integer-bool-ops.rs:78:20
178 LL | const ARRR4: [i32; Y4] = [99; 0];
179 | ^^ referenced constant has errors
181 error[E0308]: mismatched types
182 --> $DIR/const-integer-bool-ops.rs:81:19
184 LL | const Y5: usize = 42.0 != 42.0;
185 | ^^^^^^^^^^^^ expected usize, found bool
187 error[E0080]: evaluation of constant value failed
188 --> $DIR/const-integer-bool-ops.rs:84:20
190 LL | const ARRR5: [i32; Y5] = [99; 0];
191 | ^^ referenced constant has errors
193 error: aborting due to 28 previous errors
195 Some errors occurred: E0080, E0308.
196 For more information about an error, try `rustc --explain E0080`.