]> git.proxmox.com Git - rustc.git/blobdiff - src/test/run-pass/iter-cloned-type-inference.rs
Imported Upstream version 1.2.0+dfsg1
[rustc.git] / src / test / run-pass / iter-cloned-type-inference.rs
index 59f7569d8c62bf009a2c400bdc925d26350cd8ce..e3351bda3354d93bc124bb2d423d20d920adccc8 100644 (file)
@@ -11,8 +11,7 @@
 // Test to see that the element type of .cloned() can be inferred
 // properly. Previously this would fail to deduce the type of `sum`.
 
-
-#![feature(core)]
+#![feature(iter_arith)]
 
 fn square_sum(v: &[i64]) -> i64 {
     let sum: i64 = v.iter().cloned().sum();