Skip to content

Commit

Permalink
Create for-loop-unconstrained-element-type-i32-fallback.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis authored Jun 15, 2017
1 parent e4baa26 commit f11cf60
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit f11cf60

Please sign in to comment.