-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Using const value from trait to construct array produces error #52462
Comments
Duplicate of #42863 The ICE is separate though |
@oli-obk Hi, thanks for the info. |
I'm not sure how extensive your code is. Maybe it can easily be reduced by removing unrelated parts until it's just one small file without crate dependencies? It's always helpful to have a small example that reproduces the ICE. |
It seems i cannot trigger the ICE without the error from the original post. |
That is fine, as long as you can create a small enough repro case that causes the ICE, we can investigate the root cause. |
Sorry, i can't reproduce. I guess this can be closed? |
If it happens to you again, feel free to just place it in a branch and point us to it |
Playground code
(Playground)
Errors:
Like it shows above, the compiler is confused by the MAX_METHODS item within the trait that declared it. I suppose the trait impl resolves fine, because no error is produced for that span.
Within my own crate i even get an ICE, but i'm unsure if it's the same error or caused by it. This ICE is what made me build the playground example.
My crate's ICE
The text was updated successfully, but these errors were encountered: