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