Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
suggestions
/
option-to-bool.rs
blob: bbc5d1d71cb726584aaeb9571d847c9bad401ea4 [
file
] [
log
] [
blame
] [
edit
]
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
()
{}