Skip to content

Commit f11cf60

Browse files
authored
Create for-loop-unconstrained-element-type-i32-fallback.rs
1 parent e4baa26 commit f11cf60

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/run-pass/for-loop-unconstrained-element-type-i32-fallback.rs

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// Test that the type of `sum` falls back to `i32` here,
12+
// and that the for loop desugaring doesn't inferfere with
13+
// that.
14+
1115
fn main() {
1216
let mut sum = 0;
1317
for i in Vec::new() {

0 commit comments

Comments
 (0)