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
Rust does not do this kind of implicit casting, no. It could be done, but that would require an RFC to change. Please pursue one if you'd like to add this to Rust, thanks!
This doesn't compile (
error: match arms have incompatible types: expected &int, found &mut int (values differ in mutability)
)But this works:
Should this "cast" be able to happen implicitly?
The text was updated successfully, but these errors were encountered: