]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0308]: mismatched types |
0731742a | 2 | --> $DIR/const-integer-bool-ops.rs:1:18 |
b7449926 XL |
3 | | |
4 | LL | const X: usize = 42 && 39; | |
60c5eb7d | 5 | | ^^ expected `bool`, found integer |
b7449926 XL |
6 | |
7 | error[E0308]: mismatched types | |
0731742a | 8 | --> $DIR/const-integer-bool-ops.rs:1:24 |
b7449926 XL |
9 | | |
10 | LL | const X: usize = 42 && 39; | |
60c5eb7d | 11 | | ^^ expected `bool`, found integer |
b7449926 XL |
12 | |
13 | error[E0308]: mismatched types | |
0731742a | 14 | --> $DIR/const-integer-bool-ops.rs:1:18 |
b7449926 XL |
15 | | |
16 | LL | const X: usize = 42 && 39; | |
60c5eb7d | 17 | | ^^^^^^^^ expected `usize`, found `bool` |
b7449926 XL |
18 | |
19 | error[E0308]: mismatched types | |
ba9703b0 | 20 | --> $DIR/const-integer-bool-ops.rs:10:19 |
b7449926 XL |
21 | | |
22 | LL | const X1: usize = 42 || 39; | |
60c5eb7d | 23 | | ^^ expected `bool`, found integer |
b7449926 XL |
24 | |
25 | error[E0308]: mismatched types | |
ba9703b0 | 26 | --> $DIR/const-integer-bool-ops.rs:10:25 |
b7449926 XL |
27 | | |
28 | LL | const X1: usize = 42 || 39; | |
60c5eb7d | 29 | | ^^ expected `bool`, found integer |
b7449926 XL |
30 | |
31 | error[E0308]: mismatched types | |
ba9703b0 | 32 | --> $DIR/const-integer-bool-ops.rs:10:19 |
b7449926 XL |
33 | | |
34 | LL | const X1: usize = 42 || 39; | |
60c5eb7d | 35 | | ^^^^^^^^ expected `usize`, found `bool` |
b7449926 XL |
36 | |
37 | error[E0308]: mismatched types | |
ba9703b0 | 38 | --> $DIR/const-integer-bool-ops.rs:19:19 |
b7449926 XL |
39 | | |
40 | LL | const X2: usize = -42 || -39; | |
60c5eb7d | 41 | | ^^^ expected `bool`, found integer |
b7449926 XL |
42 | |
43 | error[E0308]: mismatched types | |
ba9703b0 | 44 | --> $DIR/const-integer-bool-ops.rs:19:26 |
b7449926 XL |
45 | | |
46 | LL | const X2: usize = -42 || -39; | |
60c5eb7d | 47 | | ^^^ expected `bool`, found integer |
b7449926 XL |
48 | |
49 | error[E0308]: mismatched types | |
ba9703b0 | 50 | --> $DIR/const-integer-bool-ops.rs:19:19 |
b7449926 XL |
51 | | |
52 | LL | const X2: usize = -42 || -39; | |
60c5eb7d | 53 | | ^^^^^^^^^^ expected `usize`, found `bool` |
b7449926 | 54 | |
a1dfa0c6 | 55 | error[E0308]: mismatched types |
ba9703b0 | 56 | --> $DIR/const-integer-bool-ops.rs:28:19 |
a1dfa0c6 | 57 | | |
b7449926 | 58 | LL | const X3: usize = -42 && -39; |
60c5eb7d | 59 | | ^^^ expected `bool`, found integer |
b7449926 XL |
60 | |
61 | error[E0308]: mismatched types | |
ba9703b0 | 62 | --> $DIR/const-integer-bool-ops.rs:28:26 |
b7449926 XL |
63 | | |
64 | LL | const X3: usize = -42 && -39; | |
60c5eb7d | 65 | | ^^^ expected `bool`, found integer |
b7449926 XL |
66 | |
67 | error[E0308]: mismatched types | |
ba9703b0 | 68 | --> $DIR/const-integer-bool-ops.rs:28:19 |
b7449926 XL |
69 | | |
70 | LL | const X3: usize = -42 && -39; | |
60c5eb7d | 71 | | ^^^^^^^^^^ expected `usize`, found `bool` |
b7449926 XL |
72 | |
73 | error[E0308]: mismatched types | |
ba9703b0 | 74 | --> $DIR/const-integer-bool-ops.rs:37:18 |
b7449926 XL |
75 | | |
76 | LL | const Y: usize = 42.0 == 42.0; | |
60c5eb7d | 77 | | ^^^^^^^^^^^^ expected `usize`, found `bool` |
b7449926 XL |
78 | |
79 | error[E0308]: mismatched types | |
ba9703b0 | 80 | --> $DIR/const-integer-bool-ops.rs:42:19 |
b7449926 XL |
81 | | |
82 | LL | const Y1: usize = 42.0 >= 42.0; | |
60c5eb7d | 83 | | ^^^^^^^^^^^^ expected `usize`, found `bool` |
b7449926 XL |
84 | |
85 | error[E0308]: mismatched types | |
ba9703b0 | 86 | --> $DIR/const-integer-bool-ops.rs:47:19 |
b7449926 XL |
87 | | |
88 | LL | const Y2: usize = 42.0 <= 42.0; | |
60c5eb7d | 89 | | ^^^^^^^^^^^^ expected `usize`, found `bool` |
b7449926 XL |
90 | |
91 | error[E0308]: mismatched types | |
ba9703b0 | 92 | --> $DIR/const-integer-bool-ops.rs:52:19 |
b7449926 XL |
93 | | |
94 | LL | const Y3: usize = 42.0 > 42.0; | |
60c5eb7d | 95 | | ^^^^^^^^^^^ expected `usize`, found `bool` |
b7449926 XL |
96 | |
97 | error[E0308]: mismatched types | |
ba9703b0 | 98 | --> $DIR/const-integer-bool-ops.rs:57:19 |
b7449926 XL |
99 | | |
100 | LL | const Y4: usize = 42.0 < 42.0; | |
60c5eb7d | 101 | | ^^^^^^^^^^^ expected `usize`, found `bool` |
b7449926 XL |
102 | |
103 | error[E0308]: mismatched types | |
ba9703b0 | 104 | --> $DIR/const-integer-bool-ops.rs:62:19 |
b7449926 XL |
105 | | |
106 | LL | const Y5: usize = 42.0 != 42.0; | |
60c5eb7d | 107 | | ^^^^^^^^^^^^ expected `usize`, found `bool` |
b7449926 | 108 | |
ba9703b0 | 109 | error: aborting due to 18 previous errors |
b7449926 | 110 | |
ba9703b0 | 111 | For more information about this error, try `rustc --explain E0308`. |