Skip to content

(Non) implicitly copyable strings #2770

@jesse99

Description

@jesse99

Str is not implicitly copyable so using them often yields instantiating copy type parameter with a not implicitly copyable type warnings. An example of such is below:

fn parse_command_line(args: [str]/&)
{
    let t = vec::tail(args);  // tail requires a copyable T
    io::println(#fmt["%?", t]);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions