Sign in
android
/
toolchain
/
rustc
/
f7ad1c480b8dc4097ef67cd82ec1c5b706e10950
/
.
/
src
/
test
/
ui
/
expr
/
if
/
if-without-else-result.rs
blob: 95604758a6b3e57f4bfbfa87bfe0642103d0928a [
file
] [
log
] [
blame
]
fn
main
()
{
let
a
=
if
true
{
true
};
//~^ ERROR `if` may be missing an `else` clause [E0317]
//~| expected `bool`, found `()`
println
!(
"{}"
,
a
);
}