Skip to content

E0794 has a seemingly incorrect definition of "late bound lifetime parameter" #139652

Open
@lolbinarycat

Description

@lolbinarycat

Location

https://doc.rust-lang.org/stable/error_codes/E0794.html

Summary

The docs say that a lifetime parameter must appear in an argument to be considered "late bound", but the following snippet emits E0794:

fn foo<'a>() {
    
}

fn bar() {
    let _ = foo::<'static>();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-langRelevant to the language team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions