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