ICE using associated type from trait implemented for reference type #23406
Labels
A-associated-items
Area: Associated items (types, constants & functions)
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Minimal code to reproduce:
I was actually trying to implement this for
&'a Option<T>
so I could get theT
out ofOption<T>
, but this produces the same error (although with&'a Option<T>
I get a different backtrace, and it doesn't ICE until I actually use the function - so I'm not sure if it's a separate issue or not). It does not ICE when the references are removed, i.e.impl Inner for i32
andf(x: i32) -> <i32 as Inner>::T
. Same for theOption<T>
case.Version:
Error message and backtrace:
The text was updated successfully, but these errors were encountered: