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