@@ -16,12 +16,6 @@ error[E0308]: mismatched types
1616LL | const X: usize = 42 && 39;
1717 | ^^^^^^^^ expected `usize`, found `bool`
1818
19- note: erroneous constant encountered
20- --> $DIR/const-integer-bool-ops.rs:8:18
21- |
22- LL | const ARR: [i32; X] = [99; 34];
23- | ^
24-
2519error[E0308]: mismatched types
2620 --> $DIR/const-integer-bool-ops.rs:10:19
2721 |
@@ -40,12 +34,6 @@ error[E0308]: mismatched types
4034LL | const X1: usize = 42 || 39;
4135 | ^^^^^^^^ expected `usize`, found `bool`
4236
43- note: erroneous constant encountered
44- --> $DIR/const-integer-bool-ops.rs:17:19
45- |
46- LL | const ARR1: [i32; X1] = [99; 47];
47- | ^^
48-
4937error[E0308]: mismatched types
5038 --> $DIR/const-integer-bool-ops.rs:19:19
5139 |
@@ -64,12 +52,6 @@ error[E0308]: mismatched types
6452LL | const X2: usize = -42 || -39;
6553 | ^^^^^^^^^^ expected `usize`, found `bool`
6654
67- note: erroneous constant encountered
68- --> $DIR/const-integer-bool-ops.rs:26:19
69- |
70- LL | const ARR2: [i32; X2] = [99; 18446744073709551607];
71- | ^^
72-
7355error[E0308]: mismatched types
7456 --> $DIR/const-integer-bool-ops.rs:28:19
7557 |
@@ -88,84 +70,42 @@ error[E0308]: mismatched types
8870LL | const X3: usize = -42 && -39;
8971 | ^^^^^^^^^^ expected `usize`, found `bool`
9072
91- note: erroneous constant encountered
92- --> $DIR/const-integer-bool-ops.rs:35:19
93- |
94- LL | const ARR3: [i32; X3] = [99; 6];
95- | ^^
96-
9773error[E0308]: mismatched types
9874 --> $DIR/const-integer-bool-ops.rs:37:18
9975 |
10076LL | const Y: usize = 42.0 == 42.0;
10177 | ^^^^^^^^^^^^ expected `usize`, found `bool`
10278
103- note: erroneous constant encountered
104- --> $DIR/const-integer-bool-ops.rs:40:19
105- |
106- LL | const ARRR: [i32; Y] = [99; 1];
107- | ^
108-
10979error[E0308]: mismatched types
11080 --> $DIR/const-integer-bool-ops.rs:42:19
11181 |
11282LL | const Y1: usize = 42.0 >= 42.0;
11383 | ^^^^^^^^^^^^ expected `usize`, found `bool`
11484
115- note: erroneous constant encountered
116- --> $DIR/const-integer-bool-ops.rs:45:20
117- |
118- LL | const ARRR1: [i32; Y1] = [99; 1];
119- | ^^
120-
12185error[E0308]: mismatched types
12286 --> $DIR/const-integer-bool-ops.rs:47:19
12387 |
12488LL | const Y2: usize = 42.0 <= 42.0;
12589 | ^^^^^^^^^^^^ expected `usize`, found `bool`
12690
127- note: erroneous constant encountered
128- --> $DIR/const-integer-bool-ops.rs:50:20
129- |
130- LL | const ARRR2: [i32; Y2] = [99; 1];
131- | ^^
132-
13391error[E0308]: mismatched types
13492 --> $DIR/const-integer-bool-ops.rs:52:19
13593 |
13694LL | const Y3: usize = 42.0 > 42.0;
13795 | ^^^^^^^^^^^ expected `usize`, found `bool`
13896
139- note: erroneous constant encountered
140- --> $DIR/const-integer-bool-ops.rs:55:20
141- |
142- LL | const ARRR3: [i32; Y3] = [99; 0];
143- | ^^
144-
14597error[E0308]: mismatched types
14698 --> $DIR/const-integer-bool-ops.rs:57:19
14799 |
148100LL | const Y4: usize = 42.0 < 42.0;
149101 | ^^^^^^^^^^^ expected `usize`, found `bool`
150102
151- note: erroneous constant encountered
152- --> $DIR/const-integer-bool-ops.rs:60:20
153- |
154- LL | const ARRR4: [i32; Y4] = [99; 0];
155- | ^^
156-
157103error[E0308]: mismatched types
158104 --> $DIR/const-integer-bool-ops.rs:62:19
159105 |
160106LL | const Y5: usize = 42.0 != 42.0;
161107 | ^^^^^^^^^^^^ expected `usize`, found `bool`
162108
163- note: erroneous constant encountered
164- --> $DIR/const-integer-bool-ops.rs:65:20
165- |
166- LL | const ARRR5: [i32; Y5] = [99; 0];
167- | ^^
168-
169109error: aborting due to 18 previous errors
170110
171111For more information about this error, try `rustc --explain E0308`.
0 commit comments