Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
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
);
}