Add vec::IntoIter and fold test.

This commit is contained in:
Scott Olson 2016-03-21 03:19:07 -06:00
parent 877d2d900e
commit 936537ea84

View File

@ -13,3 +13,8 @@ fn make_vec() -> Vec<i32> {
fn make_vec_macro() -> Vec<i32> {
vec![1, 2]
}
#[miri_run]
fn vec_int_iter() -> i32 {
vec![1, 2, 3, 4].into_iter().fold(0, |x, y| x + y)
}