Skip to content

Fully document all forms of lifetime elision #19662

@Gankra

Description

@Gankra

The ownership guide goes into it briefly, but does not for example give the most important one:

foo(&a, &b, &c, ..) -> &z is an elision of foo<'a, 'b, 'c, ..>(&'a a, &'b b, &'c c, ..) &'a z (output gets lifetime of first input).

Not sure if there are other elisions left in the wild.

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