-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
wrong error message with if-let return type mismatch #35685
Comments
This is what is reported for
I feel like this falls in the same category, and the issue could be fixed by highlighting the branch with conflicting type. |
Makes sense, since |
I think there’s multiple ways to interpret the message. I guess you’re interpreting it as
whereas another entirely valid interpretation is
|
Yes, you're right. Let's add those parentheticals as NOTEs in the error On Mon, Aug 15, 2016 at 1:25 PM, Simonas Kazlauskas <
|
Technically, today's message is correct. Ideally we'd error on the whole expression instead of each arm, but I'm going to close since we no longer say anything about incompatible types of arms.
|
This function
Produces E0308 (correct) with the message "
if-let
arms have incompatible types" (nonsense).The text was updated successfully, but these errors were encountered: