1 2 3 4 5 6 7
fn foo(x: Option<i32>) { if true && x {} //~^ ERROR mismatched types //~| HELP use `Option::is_some` to test if the `Option` has a value } fn main() {}