1 error[E0308]: mismatched types
2 --> $DIR/binop-logic-int.rs:1:21
4 LL | fn main() { let x = 1 && 2; }
5 | ^ expected bool, found integer
7 = note: expected type `bool`
10 error[E0308]: mismatched types
11 --> $DIR/binop-logic-int.rs:1:26
13 LL | fn main() { let x = 1 && 2; }
14 | ^ expected bool, found integer
16 = note: expected type `bool`
17 found type `{integer}`
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0308`.