Skip to content

E0263 needs to be updated to new format #35518

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
sophiajt opened this issue Aug 8, 2016 · 1 comment
Closed

E0263 needs to be updated to new format #35518

sophiajt opened this issue Aug 8, 2016 · 1 comment

Comments

@sophiajt
Copy link
Contributor

sophiajt commented Aug 8, 2016

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

E0263 needs a span_label, updating it from:

error[E0263]: lifetime name `'a` declared twice in the same scope
  --> src/test/compile-fail/E0263.rs:11:16
   |
11 | fn foo<'a, 'b, 'a>(x: &'a str, y: &'b str) { } //~ ERROR E0263
   |                ^^

To:

error[E0263]: lifetime name `'a` declared twice in the same scope
  --> src/test/compile-fail/E0263.rs:11:16
   |
11 | fn foo<'a, 'b, 'a>(x: &'a str, y: &'b str) { } //~ ERROR E0263
   |                ^^ declared twice

Bonus: underline and label the previous declaration:

error[E0263]: lifetime name `'a` declared twice in the same scope
  --> src/test/compile-fail/E0263.rs:11:16
   |
11 | fn foo<'a, 'b, 'a>(x: &'a str, y: &'b str) { } //~ ERROR E0263
   |        --      ^^ declared twice
   |        |
   |        previous declaration here
@Limeth
Copy link

Limeth commented Aug 8, 2016

I'm on it.

Limeth pushed a commit to Limeth/rust that referenced this issue Aug 9, 2016
steveklabnik added a commit to steveklabnik/rust that referenced this issue Aug 10, 2016
sophiajt pushed a commit to sophiajt/rust that referenced this issue Aug 10, 2016
sophiajt pushed a commit to sophiajt/rust that referenced this issue Aug 11, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants