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