Make tests pass on Rust 1.18 and older

This commit is contained in:
Simon Sapin
2018-08-22 14:28:13 +02:00
parent 1a6effd619
commit 3b0d114f87
+1 -1
View File
@@ -106,7 +106,7 @@ pub enum EitherOrBoth<A, B> {
fn test_iterator_size_hint() {
use std::usize;
let c = 0i32..;
let c = std::iter::repeat(0);
let v: &[_] = &[0i32, 1, 2, 3, 4, 5, 6, 7, 8, 9];
let v2 = &[10i32, 11, 12];
let vi = v.iter();