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