Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

E0403 needs to be updated to new format #35696

Closed
sophiajt opened this issue Aug 15, 2016 · 0 comments
Closed

E0403 needs to be updated to new format #35696

sophiajt opened this issue Aug 15, 2016 · 0 comments

Comments

@sophiajt
Copy link
Contributor

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

E0403 needs a span_label, updating it from:

error[E0403]: the name `T` is already used for a type parameter in this type parameter list
  --> src/test/compile-fail/E0403.rs:11:11
   |
11 | fn foo<T, T>(s: T, u: T) {} //~ ERROR E0403
   |           ^

To:

error[E0403]: the name `T` is already used for a type parameter in this type parameter list
  --> src/test/compile-fail/E0403.rs:11:11
   |
11 | fn foo<T, T>(s: T, u: T) {} //~ ERROR E0403
   |           ^ already used

Bonus: Add a span_label for the conflicting first use:

error[E0403]: the name `T` is already used for a type parameter in this type parameter list
  --> src/test/compile-fail/E0403.rs:11:11
   |
11 | fn foo<T, T>(s: T, u: T) {} //~ ERROR E0403
   |        -  ^ already used
   |        |
   |        first use of `T` 
eddyb added a commit to eddyb/rust that referenced this issue Aug 18, 2016
…t, r=jonathandturner

E0403 update error format

Fixes rust-lang#35696

Part of rust-lang#35233

r? @jonathandturner

Also did the bonus for this one.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant