rust/tests/ui/consts/const-integer-bool-ops.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

112 lines
3.2 KiB
Plaintext
Raw Normal View History

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;
| ^^ 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;
| ^^ 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;
| ^^^^^^^^ expected `usize`, found `bool`
2018-08-08 12:28:26 +00:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:10:19
2018-08-08 12:28:26 +00:00
|
LL | const X1: usize = 42 || 39;
| ^^ expected `bool`, found integer
2018-08-08 12:28:26 +00:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:10:25
2018-08-08 12:28:26 +00:00
|
LL | const X1: usize = 42 || 39;
| ^^ expected `bool`, found integer
2018-08-08 12:28:26 +00:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:10:19
2018-08-08 12:28:26 +00:00
|
LL | const X1: usize = 42 || 39;
| ^^^^^^^^ expected `usize`, found `bool`
2018-08-08 12:28:26 +00:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:19:19
2018-08-08 12:28:26 +00:00
|
LL | const X2: usize = -42 || -39;
| ^^^ expected `bool`, found integer
2018-08-08 12:28:26 +00:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:19:26
2018-08-08 12:28:26 +00:00
|
LL | const X2: usize = -42 || -39;
| ^^^ expected `bool`, found integer
2018-08-08 12:28:26 +00:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:19:19
2018-08-08 12:28:26 +00:00
|
LL | const X2: usize = -42 || -39;
| ^^^^^^^^^^ expected `usize`, found `bool`
2018-08-08 12:28:26 +00:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:28:19
|
2018-08-08 12:28:26 +00:00
LL | const X3: usize = -42 && -39;
| ^^^ expected `bool`, found integer
2018-08-08 12:28:26 +00:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:28:26
2018-08-08 12:28:26 +00:00
|
LL | const X3: usize = -42 && -39;
| ^^^ expected `bool`, found integer
2018-08-08 12:28:26 +00:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:28:19
2018-08-08 12:28:26 +00:00
|
LL | const X3: usize = -42 && -39;
| ^^^^^^^^^^ expected `usize`, found `bool`
2018-08-08 12:28:26 +00:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:37:18
2018-08-08 12:28:26 +00:00
|
LL | const Y: usize = 42.0 == 42.0;
| ^^^^^^^^^^^^ expected `usize`, found `bool`
2018-08-08 12:28:26 +00:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:42:19
2018-08-08 12:28:26 +00:00
|
LL | const Y1: usize = 42.0 >= 42.0;
| ^^^^^^^^^^^^ expected `usize`, found `bool`
2018-08-08 12:28:26 +00:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:47:19
2018-08-08 12:28:26 +00:00
|
LL | const Y2: usize = 42.0 <= 42.0;
| ^^^^^^^^^^^^ expected `usize`, found `bool`
2018-08-08 12:28:26 +00:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:52:19
2018-08-08 12:28:26 +00:00
|
LL | const Y3: usize = 42.0 > 42.0;
| ^^^^^^^^^^^ expected `usize`, found `bool`
2018-08-08 12:28:26 +00:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:57:19
2018-08-08 12:28:26 +00:00
|
LL | const Y4: usize = 42.0 < 42.0;
| ^^^^^^^^^^^ expected `usize`, found `bool`
2018-08-08 12:28:26 +00:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:62:19
2018-08-08 12:28:26 +00:00
|
LL | const Y5: usize = 42.0 != 42.0;
| ^^^^^^^^^^^^ expected `usize`, found `bool`
2018-08-08 12:28:26 +00:00
error: aborting due to 18 previous errors
2018-08-08 12:28:26 +00:00
For more information about this error, try `rustc --explain E0308`.