-
Notifications
You must be signed in to change notification settings - Fork 13.4k
failed to lift QueryResponse when passing only a const generic and not a type generic #61516
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
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: