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
warning: unused variable: `x`
--> src\main.rs:10:23
|
10 | .map(|Point { x, y }| y)
| ^ help: consider using `_x` instead
|
= note: #[warn(unused_variables)] on by default
However, applying such changes gives these errors :
error[E0026]: struct `Point` does not have a field named `_x`
--> src\main.rs:10:23
|
10 | .map(|Point { _x, y }| y)
| ^^ struct `Point` does not have this field
error[E0027]: pattern does not mention field `x`
--> src\main.rs:10:15
|
10 | .map(|Point { _x, y }| y)
| ^^^^^^^^^^^^^^^ missing field `x`
error: aborting due to 2 previous errors
I think the warning should be replaced with something that works (like x:_) or not issued at all.
gives this warning :
However, applying such changes gives these errors :
I think the warning should be replaced with something that works (like
x:_
) or not issued at all.The text was updated successfully, but these errors were encountered: