Skip to content

E0195 needs to be updated to new format #35511

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

E0195 needs to be updated to new format #35511

sophiajt opened this issue Aug 8, 2016 · 1 comment

Comments

@sophiajt
Copy link
Contributor

sophiajt commented Aug 8, 2016

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

Error E0195 needs a span_label, updating it from:

error[E0195]: lifetime parameters or bounds on method `bar` do not match the trait declaration
  --> src/test/compile-fail/E0195.rs:18:5
   |
18 |     fn bar<'a,'b>(x: &'a str, y: &'b str) { //~ ERROR E0195
   |     ^

To:

error[E0195]: lifetime parameters or bounds on method `bar` do not match the trait declaration
  --> src/test/compile-fail/E0195.rs:18:5
   |
18 |     fn bar<'a,'b>(x: &'a str, y: &'b str) { //~ ERROR E0195
   |     ^ lifetimes do not match trait

Bonus: Underline the lifetimes and show the original trait requirement:

error[E0195]: lifetime parameters or bounds on method `bar` do not match the trait declaration
  --> src/test/compile-fail/E0195.rs:18:5
   |
13 |     fn bar<'a,'b:'a>(x: &'a str, y: &'b str);
   |           ---------- original trait requirement
...
18 |     fn bar<'a,'b>(x: &'a str, y: &'b str) { //~ ERROR E0195
   |           ^^^^^^^ lifetimes do not match trait
@creativcoder
Copy link
Contributor

I'd like to work on it.

eddyb added a commit to eddyb/rust that referenced this issue Aug 23, 2016
eddyb added a commit to eddyb/rust that referenced this issue Aug 23, 2016
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this issue Aug 23, 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