Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
for-loop-while
/
for-loop-unconstrained-element-type-i32-fallback.rs
blob: a1e9b1ed87d0dcb0e0aba8fec9c5bfea7b4c64e9 [
file
] [
log
] [
blame
]
// run-pass
// Test that the type of `sum` falls back to `i32` here,
// and that the for loop desugaring doesn't interfere with
// that.
fn
main
()
{
let
mut
sum
=
0
;
for
i in
Vec
::
new
()
{
sum
+=
&
i
;
}
}