Skip to content

<'static> || doesn't work #11210

@huonw

Description

@huonw
Member
fn main() {
    let _: 'static ||;
    let _: <'static> ||;
}
closure-static.rs:3:12: 3:19 error: illegal lifetime parameter name: `static`
closure-static.rs:3     let _: <'static> ||;
                                ^~~~~~~

Activity

alexcrichton

alexcrichton commented on Dec 30, 2013

@alexcrichton
Member

Nominating.

pnkfelix

pnkfelix commented on Jan 9, 2014

@pnkfelix
Member

Probable dupe of #11209.

pnkfelix

pnkfelix commented on Jan 9, 2014

@pnkfelix
Member

(denominating since fix for #11209 should fix this too.)

added a commit that references this issue on Apr 4, 2014
304d82a
added a commit that references this issue on Apr 5, 2014
899c635
added a commit that references this issue on Apr 6, 2014
667f82a
added a commit that references this issue on Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @alexcrichton@pnkfelix@huonw

      Issue actions

        <'static> || doesn't work · Issue #11210 · rust-lang/rust