Skip to content

Lifetime documentation should include an example where the lifetime of a return is dependent on two arguments #25417

Closed
@brianquinlan

Description

@brianquinlan

The document page:
https://doc.rust-lang.org/book/lifetimes.html

For example:
fn <'a>a_or_b(a : &'a str, b : &'a str) -> &'a str

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