-
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
failed to lift QueryResponse when passing only a const generic and not a type generic #61516
Comments
/cc @yodaldevoid @varkor Related to but different from #60879 |
This can be avoided by expressly allowing the type to be inferred: |
(as compared to #60879) |
After #61570, this isn't fixed, but commenting out the |
I configure struct by complicated const value and get this ICE.
Error:
Note that type erase (as proposed @shepmaster) does not help in my case. Until I found a way around this ICE. |
Same error on:
|
I tried to port @japaric 's |
Cannot reproduce the ICE with the above playground link. |
It should be noted that while this no longer ICEs, this is because rustc no longer attempts to infer the type parameter causing it to fail to compile. |
(Playground)
Errors:
The text was updated successfully, but these errors were encountered: