Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upClosure capturing itself results in unclear "mismatched types" error #68520
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code:
Results in this error:
This seems a bit unclear to me. What types don't match here?
There is special code in the compiler that is supposed to give a better error message, but for some reason it's not happening in this case:
rust/src/librustc/infer/error_reporting/mod.rs
Lines 2003 to 2006 in 73f76b7