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;
}
}