Sign in
fuchsia
/
third_party
/
rust
/
a7a6dedfe661a6d9d181afeb0fbaa894fcb7362b
/
.
/
src
/
test
/
ui
/
for-loop-while
/
while.rs
blob: 90f718a34839a9ed1c7ccb33f2f63acc6307c17f [
file
] [
log
] [
blame
]
// run-pass
pub
fn
main
()
{
let
mut
x
:
isize
=
10
;
let
mut
y
:
isize
=
0
;
while
y
<
x
{
println
!(
"{}"
,
y
);
println
!(
"hello"
);
y
=
y
+
1
;
}
while
x
>
0
{
println
!(
"goodbye"
);
x
=
x
-
1
;
println
!(
"{}"
,
x
);
}
}