From 202263d7dccc12a4bf633b56d9e2ef2d5ff976c0 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Thu, 15 Jun 2017 12:31:45 -0400 Subject: [PATCH] Create for-loop-unconstrained-element-type-i32-fallback.rs --- .../for-loop-unconstrained-element-type-i32-fallback.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/run-pass/for-loop-unconstrained-element-type-i32-fallback.rs b/src/test/run-pass/for-loop-unconstrained-element-type-i32-fallback.rs index d9a876d9c952..b36afcf87b3e 100644 --- a/src/test/run-pass/for-loop-unconstrained-element-type-i32-fallback.rs +++ b/src/test/run-pass/for-loop-unconstrained-element-type-i32-fallback.rs @@ -8,6 +8,10 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +// Test that the type of `sum` falls back to `i32` here, +// and that the for loop desugaring doesn't inferfere with +// that. + fn main() { let mut sum = 0; for i in Vec::new() {