-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Returning Self in impl Trait does not resolve member types (+ Compiler Crash) #57399
Comments
The very first snippet has been successfully compiling since 1.35.0. @rustbot modify labels: E-needstest |
Amazing. The project this code was for actually is over, but if it helps I can try to find the old commit and check if it compiles without ICE on the current nightly. Would that be required for this issue to move forward? |
@ISibboI, thank you for your offer but I don't think that's strictly necessary! 🙂 I added the ¹ https://github.com/rust-lang/rust/issues?q=is%3Aopen+is%3Aissue+label%3AE-needstest |
…=nikomatsakis Add some regression tests - Add a test for rust-lang#62187. - Clean up the directory structure in `src/test/ui/const-generics` - Closes rust-lang#64792. - Closes rust-lang#57399. - Closes rust-lang#57271.
…=nikomatsakis Add some regression tests - Add a test for rust-lang#62187. - Clean up the directory structure in `src/test/ui/const-generics` - Closes rust-lang#64792. - Closes rust-lang#57399. - Closes rust-lang#57271.
…=nikomatsakis Add some regression tests - Add a test for rust-lang#62187. - Clean up the directory structure in `src/test/ui/const-generics` - Closes rust-lang#64792. - Closes rust-lang#57399. - Closes rust-lang#57271.
A code sample demonstrating the problem:
Playground
The error:
The Observed behaviour occurs on stable 1.31.1.
I would expect this to compile, as
Self
is just an alias forS<<i32 as T>::T>
in this case.On the current nightly (
nightly-x86_64-unknown-linux-gnu unchanged - rustc 1.33.0-nightly (b92552d55 2019-01-06)
), using the same construction in a more complicated environment leads to a compiler crash:I cannot disclose the full code, but here are some samples I think are relevant:
The method around the crash:
The PLTDCCH type:
The WeightFunctionBuilder trait:
The text was updated successfully, but these errors were encountered: