You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0409]: variable `y` is bound with different mode in pattern #2 than in pattern #1
--> src/test/compile-fail/E0409.rs:15:23
|
15 | (0, ref y) | (y, 0) => {} //~ ERROR E0409
| ^
To:
error[E0409]: variable `y` is bound with different mode in pattern #2 than in pattern #1
--> src/test/compile-fail/E0409.rs:15:23
|
15 | (0, ref y) | (y, 0) => {} //~ ERROR E0409
| ^ bound in different ways
Bonus: add the span_label for the previous binding:
error[E0409]: variable `y` is bound with different mode in pattern #2 than in pattern #1
--> src/test/compile-fail/E0409.rs:15:23
|
15 | (0, ref y) | (y, 0) => {} //~ ERROR E0409
| ----- ^ bound in different ways
| |
| first binding
Activity
mikhail-m1 commentedon Aug 16, 2016
I've managed to solve bonus like this:
Is it OK?
sophiajt commentedon Aug 16, 2016
Yes, underlining the name of the binding works just fine.
Rollup merge of rust-lang#35726 - mikhail-m1:master2, r=jonathandturner
Rollup merge of rust-lang#35726 - mikhail-m1:master2, r=jonathandturner