Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
for-loop-while
/
for-loop-has-unit-body.rs
blob: 38c34d2dc2e6f8fbc7802b706aa4267a7418d977 [
file
] [
log
] [
blame
]
// run-pass
fn
main
()
{
// Check that the tail statement in the body unifies with something
for
_ in
0.
.
3
{
#[
allow
(
deprecated
)]
unsafe
{
std
::
mem
::
uninitialized
()
}
}
// Check that the tail statement in the body can be unit
for
_ in
0.
.
3
{
()
}
}