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