Skip to content

E0496 needs to be updated to new format #36000

Closed
@sophiajt

Description

@sophiajt

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

E0496 needs a span_label and a span_note converted to a span_label, updating this:

error[E0496]: lifetime name `'a` shadows a lifetime name that is already in scope
  --> src/test/compile-fail/E0496.rs:16:10
   |
16 |     fn f<'a>(x: &'a i32) { //~ ERROR E0496
   |          ^^
   |
note: shadowed lifetime `'a` declared here
  --> src/test/compile-fail/E0496.rs:15:6
   |
15 | impl<'a> Foo<'a> {
   |      ^^

To:

error[E0496]: lifetime name `'a` shadows a lifetime name that is already in scope
  --> src/test/compile-fail/E0496.rs:16:10
   |
15 | impl<'a> Foo<'a> {
   |      -- first declared here
16 |     fn f<'a>(x: &'a i32) { //~ ERROR E0496
   |          ^^ lifetime 'a already in scope

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-compilerRelevant to the compiler 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