Skip to content

Make vec::zip not require T:copy #3254

Closed
@bblum

Description

@bblum

Currently we have:

pure fn zip<T: copy, U: copy>(v: &[const T], u: &[const U]) -> ~[(T, U)]

Produces an "instantiating copy type parameter" warning when building stdtest.

We could instead have:

pure fn zip_ref<T: copy, U: copy>(v: &[const T], u: &[const U]) -> ~[(T, U)]
pure fn zip<T, U>(+v: ~[const T], +u: ~[const U]) -> ~[(T, U)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions