Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
for-loop-while
/
loop-scope.rs
blob: 73324a3e1bdc768f7da1a8d1a855ed538e019dd8 [
file
] [
log
] [
blame
]
// run-pass
pub
fn
main
()
{
let
x
=
vec
![
10
,
20
,
30
];
let
mut
sum
=
0
;
for
x in
&
x
{
sum
+=
*
x
;
}
assert_eq
!(
sum
,
60
);
}