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 error[E0308]: mismatched types
8 --> $DIR/binop-logic-int.rs:1:26
10 LL | fn main() { let x = 1 && 2; }
11 | ^ expected `bool`, found integer
13 error: aborting due to 2 previous errors
15 For more information about this error, try `rustc --explain E0308`.