1 error[E0308]: mismatched types
2 --> $DIR/option-to-bool.rs:4:16
5 | ---- ^ expected `bool`, found enum `Option`
7 | expected because this is `bool`
9 = note: expected type `bool`
10 found enum `Option<i32>`
11 help: use `Option::is_some` to test if the `Option` has a value
13 LL | if true && x.is_some() {}
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0308`.