1 error[E0308]: mismatched types
2 --> $DIR/const-integer-bool-ops.rs:1:18
4 LL | const X: usize = 42 && 39;
5 | ^^ expected `bool`, found integer
7 error[E0308]: mismatched types
8 --> $DIR/const-integer-bool-ops.rs:1:24
10 LL | const X: usize = 42 && 39;
11 | ^^ expected `bool`, found integer
13 error[E0308]: mismatched types
14 --> $DIR/const-integer-bool-ops.rs:1:18
16 LL | const X: usize = 42 && 39;
17 | ^^^^^^^^ expected `usize`, found `bool`
19 note: erroneous constant used
20 --> $DIR/const-integer-bool-ops.rs:8:18
22 LL | const ARR: [i32; X] = [99; 34];
25 error[E0308]: mismatched types
26 --> $DIR/const-integer-bool-ops.rs:11:19
28 LL | const X1: usize = 42 || 39;
29 | ^^ expected `bool`, found integer
31 error[E0308]: mismatched types
32 --> $DIR/const-integer-bool-ops.rs:11:25
34 LL | const X1: usize = 42 || 39;
35 | ^^ expected `bool`, found integer
37 error[E0308]: mismatched types
38 --> $DIR/const-integer-bool-ops.rs:11:19
40 LL | const X1: usize = 42 || 39;
41 | ^^^^^^^^ expected `usize`, found `bool`
43 note: erroneous constant used
44 --> $DIR/const-integer-bool-ops.rs:18:19
46 LL | const ARR1: [i32; X1] = [99; 47];
49 error[E0308]: mismatched types
50 --> $DIR/const-integer-bool-ops.rs:21:19
52 LL | const X2: usize = -42 || -39;
53 | ^^^ expected `bool`, found integer
55 error[E0308]: mismatched types
56 --> $DIR/const-integer-bool-ops.rs:21:26
58 LL | const X2: usize = -42 || -39;
59 | ^^^ expected `bool`, found integer
61 error[E0308]: mismatched types
62 --> $DIR/const-integer-bool-ops.rs:21:19
64 LL | const X2: usize = -42 || -39;
65 | ^^^^^^^^^^ expected `usize`, found `bool`
67 note: erroneous constant used
68 --> $DIR/const-integer-bool-ops.rs:28:19
70 LL | const ARR2: [i32; X2] = [99; 18446744073709551607];
73 error[E0308]: mismatched types
74 --> $DIR/const-integer-bool-ops.rs:31:19
76 LL | const X3: usize = -42 && -39;
77 | ^^^ expected `bool`, found integer
79 error[E0308]: mismatched types
80 --> $DIR/const-integer-bool-ops.rs:31:26
82 LL | const X3: usize = -42 && -39;
83 | ^^^ expected `bool`, found integer
85 error[E0308]: mismatched types
86 --> $DIR/const-integer-bool-ops.rs:31:19
88 LL | const X3: usize = -42 && -39;
89 | ^^^^^^^^^^ expected `usize`, found `bool`
91 note: erroneous constant used
92 --> $DIR/const-integer-bool-ops.rs:38:19
94 LL | const ARR3: [i32; X3] = [99; 6];
97 error[E0308]: mismatched types
98 --> $DIR/const-integer-bool-ops.rs:41:18
100 LL | const Y: usize = 42.0 == 42.0;
101 | ^^^^^^^^^^^^ expected `usize`, found `bool`
103 note: erroneous constant used
104 --> $DIR/const-integer-bool-ops.rs:44:19
106 LL | const ARRR: [i32; Y] = [99; 1];
109 error[E0308]: mismatched types
110 --> $DIR/const-integer-bool-ops.rs:47:19
112 LL | const Y1: usize = 42.0 >= 42.0;
113 | ^^^^^^^^^^^^ expected `usize`, found `bool`
115 note: erroneous constant used
116 --> $DIR/const-integer-bool-ops.rs:50:20
118 LL | const ARRR1: [i32; Y1] = [99; 1];
121 error[E0308]: mismatched types
122 --> $DIR/const-integer-bool-ops.rs:53:19
124 LL | const Y2: usize = 42.0 <= 42.0;
125 | ^^^^^^^^^^^^ expected `usize`, found `bool`
127 note: erroneous constant used
128 --> $DIR/const-integer-bool-ops.rs:56:20
130 LL | const ARRR2: [i32; Y2] = [99; 1];
133 error[E0308]: mismatched types
134 --> $DIR/const-integer-bool-ops.rs:59:19
136 LL | const Y3: usize = 42.0 > 42.0;
137 | ^^^^^^^^^^^ expected `usize`, found `bool`
139 note: erroneous constant used
140 --> $DIR/const-integer-bool-ops.rs:62:20
142 LL | const ARRR3: [i32; Y3] = [99; 0];
145 error[E0308]: mismatched types
146 --> $DIR/const-integer-bool-ops.rs:65:19
148 LL | const Y4: usize = 42.0 < 42.0;
149 | ^^^^^^^^^^^ expected `usize`, found `bool`
151 note: erroneous constant used
152 --> $DIR/const-integer-bool-ops.rs:68:20
154 LL | const ARRR4: [i32; Y4] = [99; 0];
157 error[E0308]: mismatched types
158 --> $DIR/const-integer-bool-ops.rs:71:19
160 LL | const Y5: usize = 42.0 != 42.0;
161 | ^^^^^^^^^^^^ expected `usize`, found `bool`
163 note: erroneous constant used
164 --> $DIR/const-integer-bool-ops.rs:74:20
166 LL | const ARRR5: [i32; Y5] = [99; 0];
169 error: aborting due to 18 previous errors
171 For more information about this error, try `rustc --explain E0308`.