-
Notifications
You must be signed in to change notification settings - Fork 105
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
BUG:src/hir_typeck/common.cpp:751: Impl parameters were not expected (got T/*I:0*/) #322
Comments
Removing the first line just causes it to fail to compile earlier. |
The |
Will this issue be fixed in the future? 🤣It seems that the compiler did not successfully output the error message and instead caused an internal error in the compiler😶🌫️ |
It's an ICE because the generic type was copied to a scope with no generics. |
Thank you for your dedication and responsiveness. I look forward to seeing the issue resolved soon~ |
Code
$ cat small.rs
Version
mrustc --version
Command
mrustc -L output-1.54.0 small.rs
Output
The error message I received is: ":0:0 BUG: src/hir_typeck/common.cpp:751: Impl parameters were not expected (got T/I:0/)".
I found that when I remove the first line, the compiler could output the correct error message🤣
If remove the first line of the code:
The text was updated successfully, but these errors were encountered: