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