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

E0503 needs to be updated to new format #35703

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

E0503 needs to be updated to new format #35703

sophiajt opened this issue Aug 15, 2016 · 1 comment

Comments

@sophiajt
Copy link
Contributor

From: src/test/compile-fail/regions-escape-loop-via-vec.rs

E0503 needs a span_label and a span_note converted to a span_label, updating:

error[E0503]: cannot use `x` because it was mutably borrowed
  --> src/test/compile-fail/regions-escape-loop-via-vec.rs:16:13
   |
16 |         let mut z = x;
   |             ^^^^^
   |
note: borrow of `x` occurs here
  --> src/test/compile-fail/regions-escape-loop-via-vec.rs:14:28
   |
14 |     let mut _y = vec!(&mut x);
   |                            ^

To:

error[E0503]: cannot use `x` because it was mutably borrowed
  --> src/test/compile-fail/regions-escape-loop-via-vec.rs:16:13
   |
14 |    let mut _y = vec!(&mut x);
   |                           - mutably borrowed here
15 |    while x < 10 {
16 |         let mut z = x;
   |             ^^^^^ use of borrowed `x`
@wesleywiser
Copy link
Member

I can take this

wesleywiser added a commit to wesleywiser/rust that referenced this issue Aug 21, 2016
sophiajt pushed a commit to sophiajt/rust that referenced this issue Aug 22, 2016
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

2 participants