Skip to content

Slicing syntax very unergonomic in latest nightly #20743

Closed
@mahkoh

Description

@mahkoh

This no longer works:

s[i+j..].to_string() // s is a &str

You now have to write

(&s[(i+j)..]).to_string()

At this point using slice_from is more ergonomic.

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