-
Notifications
You must be signed in to change notification settings - Fork 13.3k
internal compiler error: Type parameter Self/SelfSpace.0
(Self/SelfSpace/0) out of range when substituting
#33070
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
Labels
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
Hopefully a more useful playpen backtrace (nightly):
|
Got the same error from: trait Ice<'a, T=&'a i32> {
fn foo() -> T;
}
fn foo<'a, T>() -> T where T: Ice<'a> {
Ice::foo()
} Backtrace:
version:
|
No longer ICEs. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was trying to figure out how to write things with traits and hit an ICE. It looked similar to #28344, but that was closed well before 1.8, so hopefully this is useful.
I tried this code:
And this happened:
Meta
rustc --version --verbose
:Backtrace:
The text was updated successfully, but these errors were encountered: