2018-08-08 07:28:26 -05:00
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/const-integer-bool-ops.rs:1:18
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | const X: usize = 42 && 39;
|
2019-11-15 11:37:01 -06:00
|
|
|
| ^^ expected `bool`, found integer
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/const-integer-bool-ops.rs:1:24
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | const X: usize = 42 && 39;
|
2019-11-15 11:37:01 -06:00
|
|
|
| ^^ expected `bool`, found integer
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/const-integer-bool-ops.rs:1:18
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | const X: usize = 42 && 39;
|
2019-11-15 11:37:01 -06:00
|
|
|
| ^^^^^^^^ expected `usize`, found `bool`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2023-05-14 19:00:00 -05:00
|
|
|
--> $DIR/const-integer-bool-ops.rs:10:19
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | const X1: usize = 42 || 39;
|
2019-11-15 11:37:01 -06:00
|
|
|
| ^^ expected `bool`, found integer
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2023-05-14 19:00:00 -05:00
|
|
|
--> $DIR/const-integer-bool-ops.rs:10:25
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | const X1: usize = 42 || 39;
|
2019-11-15 11:37:01 -06:00
|
|
|
| ^^ expected `bool`, found integer
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2023-05-14 19:00:00 -05:00
|
|
|
--> $DIR/const-integer-bool-ops.rs:10:19
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | const X1: usize = 42 || 39;
|
2019-11-15 11:37:01 -06:00
|
|
|
| ^^^^^^^^ expected `usize`, found `bool`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2023-05-14 19:00:00 -05:00
|
|
|
--> $DIR/const-integer-bool-ops.rs:19:19
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | const X2: usize = -42 || -39;
|
2019-11-15 11:37:01 -06:00
|
|
|
| ^^^ expected `bool`, found integer
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2023-05-14 19:00:00 -05:00
|
|
|
--> $DIR/const-integer-bool-ops.rs:19:26
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | const X2: usize = -42 || -39;
|
2019-11-15 11:37:01 -06:00
|
|
|
| ^^^ expected `bool`, found integer
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2023-05-14 19:00:00 -05:00
|
|
|
--> $DIR/const-integer-bool-ops.rs:19:19
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | const X2: usize = -42 || -39;
|
2019-11-15 11:37:01 -06:00
|
|
|
| ^^^^^^^^^^ expected `usize`, found `bool`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2022-02-16 03:56:01 -06:00
|
|
|
error[E0308]: mismatched types
|
2023-05-14 19:00:00 -05:00
|
|
|
--> $DIR/const-integer-bool-ops.rs:28:19
|
2022-02-16 03:56:01 -06:00
|
|
|
|
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | const X3: usize = -42 && -39;
|
2019-11-15 11:37:01 -06:00
|
|
|
| ^^^ expected `bool`, found integer
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2023-05-14 19:00:00 -05:00
|
|
|
--> $DIR/const-integer-bool-ops.rs:28:26
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | const X3: usize = -42 && -39;
|
2019-11-15 11:37:01 -06:00
|
|
|
| ^^^ expected `bool`, found integer
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2023-05-14 19:00:00 -05:00
|
|
|
--> $DIR/const-integer-bool-ops.rs:28:19
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | const X3: usize = -42 && -39;
|
2019-11-15 11:37:01 -06:00
|
|
|
| ^^^^^^^^^^ expected `usize`, found `bool`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2023-05-14 19:00:00 -05:00
|
|
|
--> $DIR/const-integer-bool-ops.rs:37:18
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | const Y: usize = 42.0 == 42.0;
|
2019-11-15 11:37:01 -06:00
|
|
|
| ^^^^^^^^^^^^ expected `usize`, found `bool`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2023-05-14 19:00:00 -05:00
|
|
|
--> $DIR/const-integer-bool-ops.rs:42:19
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | const Y1: usize = 42.0 >= 42.0;
|
2019-11-15 11:37:01 -06:00
|
|
|
| ^^^^^^^^^^^^ expected `usize`, found `bool`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2023-05-14 19:00:00 -05:00
|
|
|
--> $DIR/const-integer-bool-ops.rs:47:19
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | const Y2: usize = 42.0 <= 42.0;
|
2019-11-15 11:37:01 -06:00
|
|
|
| ^^^^^^^^^^^^ expected `usize`, found `bool`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2023-05-14 19:00:00 -05:00
|
|
|
--> $DIR/const-integer-bool-ops.rs:52:19
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | const Y3: usize = 42.0 > 42.0;
|
2019-11-15 11:37:01 -06:00
|
|
|
| ^^^^^^^^^^^ expected `usize`, found `bool`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2023-05-14 19:00:00 -05:00
|
|
|
--> $DIR/const-integer-bool-ops.rs:57:19
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | const Y4: usize = 42.0 < 42.0;
|
2019-11-15 11:37:01 -06:00
|
|
|
| ^^^^^^^^^^^ expected `usize`, found `bool`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2023-05-14 19:00:00 -05:00
|
|
|
--> $DIR/const-integer-bool-ops.rs:62:19
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | const Y5: usize = 42.0 != 42.0;
|
2019-11-15 11:37:01 -06:00
|
|
|
| ^^^^^^^^^^^^ expected `usize`, found `bool`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2022-11-15 05:06:20 -06:00
|
|
|
error: aborting due to 18 previous errors
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2022-11-15 05:06:20 -06:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|