about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2017-06-15 12:31:45 -0400
committerGitHub <noreply@github.com>2017-06-15 12:31:45 -0400
commitf11cf60944eb52eaebae8f4b510a0e805c679958 (patch)
tree0004f9e9ce2c71e1bcd833d5c409531e709c92c5
parente4baa26d2a24845bb960a9a51fa3c4ecf63bdd4a (diff)
downloadrust-f11cf60944eb52eaebae8f4b510a0e805c679958.tar.gz
rust-f11cf60944eb52eaebae8f4b510a0e805c679958.zip
Create for-loop-unconstrained-element-type-i32-fallback.rs
-rw-r--r--src/test/run-pass/for-loop-unconstrained-element-type-i32-fallback.rs4
1 files changed, 4 insertions, 0 deletions
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 d9a876d9c95..b36afcf87b3 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() {