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: Inferred type scheme for symbol std::result::map does not match the declared type.
Inferred: let<T1, T2, T3> std::result::map: std::result::Result<T1, T2>, (T1 -> T3) -> std::result::Result<T3, T2>
Declared: let<T, U, E> std::result::map: std::result::Result<T, E>, (T -> U) -> std::result::Result<U, E>
It seems like type parameters must be ordered in the same order they appear in the type for inference to work.
The text was updated successfully, but these errors were encountered:
It's a duplicate of #1305 (but let me close that one).
In general, I'm also considering not making it an error if the declared type is not the most generic possible, just check that it's compatible with the code...
This code compiles:
But if we change this
We get this error:
It seems like type parameters must be ordered in the same order they appear in the type for inference to work.
The text was updated successfully, but these errors were encountered: