-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE in region inference #32323
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
Comments
Pretty sure that was me. |
Minified: pub trait Tr<'a> {
type Out;
}
pub fn f<'a, T: Tr<'a>>() -> <T as Tr<'a>>::Out {}
pub fn main() {} Note that the Playpen doesn't yet run the latest nightly, so it's not reproducible there. |
The issue is of course the use of the "bound region" aka lifetime parameter |
Yeah I forgot about that. You need to |
PR opened. @bobtwinkles thanks for the quick report! |
liveness: substitute bound regions with free ones before normalizing the return type Fixes rust-lang#32323 r? @arielb1
Hello, I have a found an ICE. The code is malformed (no return from a function that should return a value) but I don't think the compiler should be crashing in this case =P
Returning a value
run_cached_stage
allows the code to compile successfully.Stack trace:
Rustc version:
The text was updated successfully, but these errors were encountered: