1 error[E0308]: mismatched types
2 --> $DIR/const-integer-bool-ops.rs:1:18
4 LL | const X: usize = 42 && 39;
5 | ^^ expected `bool`, found integer
7 error[E0308]: mismatched types
8 --> $DIR/const-integer-bool-ops.rs:1:24
10 LL | const X: usize = 42 && 39;
11 | ^^ expected `bool`, found integer
13 error[E0308]: mismatched types
14 --> $DIR/const-integer-bool-ops.rs:1:18
16 LL | const X: usize = 42 && 39;
17 | ^^^^^^^^ expected `usize`, found `bool`
19 error[E0308]: mismatched types
20 --> $DIR/const-integer-bool-ops.rs:10:19
22 LL | const X1: usize = 42 || 39;
23 | ^^ expected `bool`, found integer
25 error[E0308]: mismatched types
26 --> $DIR/const-integer-bool-ops.rs:10:25
28 LL | const X1: usize = 42 || 39;
29 | ^^ expected `bool`, found integer
31 error[E0308]: mismatched types
32 --> $DIR/const-integer-bool-ops.rs:10:19
34 LL | const X1: usize = 42 || 39;
35 | ^^^^^^^^ expected `usize`, found `bool`
37 error[E0308]: mismatched types
38 --> $DIR/const-integer-bool-ops.rs:19:19
40 LL | const X2: usize = -42 || -39;
41 | ^^^ expected `bool`, found integer
43 error[E0308]: mismatched types
44 --> $DIR/const-integer-bool-ops.rs:19:26
46 LL | const X2: usize = -42 || -39;
47 | ^^^ expected `bool`, found integer
49 error[E0308]: mismatched types
50 --> $DIR/const-integer-bool-ops.rs:19:19
52 LL | const X2: usize = -42 || -39;
53 | ^^^^^^^^^^ expected `usize`, found `bool`
55 error[E0308]: mismatched types
56 --> $DIR/const-integer-bool-ops.rs:28:19
58 LL | const X3: usize = -42 && -39;
59 | ^^^ expected `bool`, found integer
61 error[E0308]: mismatched types
62 --> $DIR/const-integer-bool-ops.rs:28:26
64 LL | const X3: usize = -42 && -39;
65 | ^^^ expected `bool`, found integer
67 error[E0308]: mismatched types
68 --> $DIR/const-integer-bool-ops.rs:28:19
70 LL | const X3: usize = -42 && -39;
71 | ^^^^^^^^^^ expected `usize`, found `bool`
73 error[E0308]: mismatched types
74 --> $DIR/const-integer-bool-ops.rs:37:18
76 LL | const Y: usize = 42.0 == 42.0;
77 | ^^^^^^^^^^^^ expected `usize`, found `bool`
79 error[E0308]: mismatched types
80 --> $DIR/const-integer-bool-ops.rs:42:19
82 LL | const Y1: usize = 42.0 >= 42.0;
83 | ^^^^^^^^^^^^ expected `usize`, found `bool`
85 error[E0308]: mismatched types
86 --> $DIR/const-integer-bool-ops.rs:47:19
88 LL | const Y2: usize = 42.0 <= 42.0;
89 | ^^^^^^^^^^^^ expected `usize`, found `bool`
91 error[E0308]: mismatched types
92 --> $DIR/const-integer-bool-ops.rs:52:19
94 LL | const Y3: usize = 42.0 > 42.0;
95 | ^^^^^^^^^^^ expected `usize`, found `bool`
97 error[E0308]: mismatched types
98 --> $DIR/const-integer-bool-ops.rs:57:19
100 LL | const Y4: usize = 42.0 < 42.0;
101 | ^^^^^^^^^^^ expected `usize`, found `bool`
103 error[E0308]: mismatched types
104 --> $DIR/const-integer-bool-ops.rs:62:19
106 LL | const Y5: usize = 42.0 != 42.0;
107 | ^^^^^^^^^^^^ expected `usize`, found `bool`
109 error: aborting due to 18 previous errors
111 For more information about this error, try `rustc --explain E0308`.