Skip to content

E0262 needs to be updated to new format #35517

Closed
@sophiajt

Description

@sophiajt

From: src/test/compile-fail/E0262.rs

E0262 needs a span_label, updating it from:

error[E0262]: invalid lifetime parameter name: `'static`
  --> src/test/compile-fail/E0262.rs:11:8
   |
11 | fn foo<'static>(x: &'static str) { } //~ ERROR E0262
   |        ^^^^^^^

To:

error[E0262]: invalid lifetime parameter name: `'static`
  --> src/test/compile-fail/E0262.rs:11:8
   |
11 | fn foo<'static>(x: &'static str) { } //~ ERROR E0262
   |        ^^^^^^^ `'static` is a reserved lifetime name

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions