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.

172 lines
4.7 KiB
Plaintext
Raw Normal View History

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;
| ^^ 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;
| ^^ 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;
| ^^^^^^^^ expected `usize`, found `bool`
2018-08-08 07:28:26 -05:00
note: erroneous constant used
--> $DIR/const-integer-bool-ops.rs:8:18
|
LL | const ARR: [i32; X] = [99; 34];
| ^
2018-08-08 07:28:26 -05:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:11:19
2018-08-08 07:28:26 -05:00
|
LL | const X1: usize = 42 || 39;
| ^^ expected `bool`, found integer
2018-08-08 07:28:26 -05:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:11:25
2018-08-08 07:28:26 -05:00
|
LL | const X1: usize = 42 || 39;
| ^^ expected `bool`, found integer
2018-08-08 07:28:26 -05:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:11:19
2018-08-08 07:28:26 -05:00
|
LL | const X1: usize = 42 || 39;
| ^^^^^^^^ expected `usize`, found `bool`
2018-08-08 07:28:26 -05:00
note: erroneous constant used
--> $DIR/const-integer-bool-ops.rs:18:19
|
LL | const ARR1: [i32; X1] = [99; 47];
| ^^
2018-08-08 07:28:26 -05:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:21:19
2018-08-08 07:28:26 -05:00
|
LL | const X2: usize = -42 || -39;
| ^^^ expected `bool`, found integer
2018-08-08 07:28:26 -05:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:21:26
2018-08-08 07:28:26 -05:00
|
LL | const X2: usize = -42 || -39;
| ^^^ expected `bool`, found integer
2018-08-08 07:28:26 -05:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:21:19
2018-08-08 07:28:26 -05:00
|
LL | const X2: usize = -42 || -39;
| ^^^^^^^^^^ expected `usize`, found `bool`
2018-08-08 07:28:26 -05:00
note: erroneous constant used
--> $DIR/const-integer-bool-ops.rs:28:19
|
LL | const ARR2: [i32; X2] = [99; 18446744073709551607];
| ^^
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:31:19
|
2018-08-08 07:28:26 -05:00
LL | const X3: usize = -42 && -39;
| ^^^ expected `bool`, found integer
2018-08-08 07:28:26 -05:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:31:26
2018-08-08 07:28:26 -05:00
|
LL | const X3: usize = -42 && -39;
| ^^^ expected `bool`, found integer
2018-08-08 07:28:26 -05:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:31:19
2018-08-08 07:28:26 -05:00
|
LL | const X3: usize = -42 && -39;
| ^^^^^^^^^^ expected `usize`, found `bool`
2018-08-08 07:28:26 -05:00
note: erroneous constant used
--> $DIR/const-integer-bool-ops.rs:38:19
|
LL | const ARR3: [i32; X3] = [99; 6];
| ^^
2018-08-08 07:28:26 -05:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:41:18
2018-08-08 07:28:26 -05:00
|
LL | const Y: usize = 42.0 == 42.0;
| ^^^^^^^^^^^^ expected `usize`, found `bool`
2018-08-08 07:28:26 -05:00
note: erroneous constant used
--> $DIR/const-integer-bool-ops.rs:44:19
|
LL | const ARRR: [i32; Y] = [99; 1];
| ^
2018-08-08 07:28:26 -05:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:47:19
2018-08-08 07:28:26 -05:00
|
LL | const Y1: usize = 42.0 >= 42.0;
| ^^^^^^^^^^^^ expected `usize`, found `bool`
2018-08-08 07:28:26 -05:00
note: erroneous constant used
--> $DIR/const-integer-bool-ops.rs:50:20
|
LL | const ARRR1: [i32; Y1] = [99; 1];
| ^^
2018-08-08 07:28:26 -05:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:53:19
2018-08-08 07:28:26 -05:00
|
LL | const Y2: usize = 42.0 <= 42.0;
| ^^^^^^^^^^^^ expected `usize`, found `bool`
2018-08-08 07:28:26 -05:00
note: erroneous constant used
--> $DIR/const-integer-bool-ops.rs:56:20
|
LL | const ARRR2: [i32; Y2] = [99; 1];
| ^^
2018-08-08 07:28:26 -05:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:59:19
2018-08-08 07:28:26 -05:00
|
LL | const Y3: usize = 42.0 > 42.0;
| ^^^^^^^^^^^ expected `usize`, found `bool`
2018-08-08 07:28:26 -05:00
note: erroneous constant used
--> $DIR/const-integer-bool-ops.rs:62:20
|
LL | const ARRR3: [i32; Y3] = [99; 0];
| ^^
2018-08-08 07:28:26 -05:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:65:19
2018-08-08 07:28:26 -05:00
|
LL | const Y4: usize = 42.0 < 42.0;
| ^^^^^^^^^^^ expected `usize`, found `bool`
2018-08-08 07:28:26 -05:00
note: erroneous constant used
--> $DIR/const-integer-bool-ops.rs:68:20
|
LL | const ARRR4: [i32; Y4] = [99; 0];
| ^^
2018-08-08 07:28:26 -05:00
error[E0308]: mismatched types
--> $DIR/const-integer-bool-ops.rs:71:19
2018-08-08 07:28:26 -05:00
|
LL | const Y5: usize = 42.0 != 42.0;
| ^^^^^^^^^^^^ expected `usize`, found `bool`
2018-08-08 07:28:26 -05:00
note: erroneous constant used
--> $DIR/const-integer-bool-ops.rs:74:20
|
LL | const ARRR5: [i32; Y5] = [99; 0];
| ^^
error: aborting due to 18 previous errors
2018-08-08 07:28:26 -05:00
For more information about this error, try `rustc --explain E0308`.