mirror of
https://github.com/openharmony/third_party_rust_rust-std-candidates.git
synced 2026-06-30 20:47:55 -04:00
Make tests pass on Rust 1.18 and older
This commit is contained in:
+1
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user