Fix reflect-visit-type for iterator changes

This commit is contained in:
Philipp Brüschweiler 2013-06-23 17:15:37 +02:00
parent e2f1049bd5
commit ce888a5055

View File

@ -162,7 +162,7 @@ pub fn main() {
visit_ty::<i16>(vv);
visit_ty::<~[int]>(vv);
for v.types.each |&s| {
for v.types.iter().advance |&s| {
println(fmt!("type: %s", s));
}
assert_eq!((*v.types).clone(), ~[~"bool", ~"int", ~"i8", ~"i16", ~"[", ~"int", ~"]"]);