Skip to content
This repository was archived by the owner on Sep 14, 2023. It is now read-only.
This repository was archived by the owner on Sep 14, 2023. It is now read-only.

get_vec and the borrow checker play badly together #256

@wbl

Description

@wbl

get_vec returns Vec<&str>. Unfortunately the borrow checker interprets this to make the first argument to get_vec also have static scope, ala https://stackoverflow.com/questions/58436950/argument-requires-that-is-borrowed-for-static-how-do-i-work-round-this.

There do not seem to be any good workarounds other than changing the type of the function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions