]> git.lizzy.rs Git - rust.git/blob - src/test/ui/binop/binop-logic-int.stderr
b699b390b8bb1532999abaa7399fdb7b3b729789
[rust.git] / src / test / ui / binop / binop-logic-int.stderr
1 error[E0308]: mismatched types
2   --> $DIR/binop-logic-int.rs:1:21
3    |
4 LL | fn main() { let x = 1 && 2; }
5    |                     ^ expected bool, found integer
6    |
7    = note: expected type `bool`
8               found type `{integer}`
9
10 error[E0308]: mismatched types
11   --> $DIR/binop-logic-int.rs:1:26
12    |
13 LL | fn main() { let x = 1 && 2; }
14    |                          ^ expected bool, found integer
15    |
16    = note: expected type `bool`
17               found type `{integer}`
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0308`.