-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
ICE returning arrays with length specified by an associated constant #28267
Comments
That's strange. And the file that it talks about, |
Although I can understand the second error (non-constant path in constant expr). |
The file does exist: http://mxr.mozilla.org/rust/source/src/librustc/front/map/mod.rs |
It's not just with |
I think we have to fix |
Anyway, paths with type parameters (e.g. |
rustc encountered an ICE while trying to display an ICE the inner ICE is:
This looks like a dupe of something. |
Closing as a dupe of #25145 |
code
compiler output
verbose compiler info
other thoughts
I would have expected the accepted way to write the array size would be
<T as Trait>::SIZE
, but that fails to compile with this error message:The text was updated successfully, but these errors were encountered: