Skip to content

In Section 6.5 (“Iter”), the return type is hard to infer #273

Description

@evelon

The issue introduced in #189 still persists.

The return type of into_iter is shown like this in the standard library documentation:

fn into_iter(self) -> <&'a Vec<T, A> as IntoIterator>::IntoIter
Creates an iterator from a value. Read more

It is simply impossible to infer the concrete return type std::slice::Iter from this signature for a learner working through these exercises.

This exercise, possibly including section 6.4 (“Iterators”), should probably be moved to a later stage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions