ICE: struct impl with type parameter substituted with another type #53498
Labels
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I made a struct
Foo<T>
, and made twoimpl
blocks forFoo<A>
andFoo<B>
(A
andB
are unit structs.) Eachimpl
block has a method with same name but different argument count. I accidentally made those methods private.Link to the playground
I expected to get error about privacy, but with that, the compiler panicked.
Meta
Backtrace:
The text was updated successfully, but these errors were encountered: