ICE with (hopefully) illegal CoerceUnsized impl #68013
Labels
C-bug
Category: This is a bug.
F-coerce_unsized
The `CoerceUnsized` trait
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I was experimenting with
CoerceUnsized
and I encountered an ICE with this example:This is hopefully an illegal
CoerceUnsized
impl, as it would permit us to do illegal mutation (see the full playground link above for the context). Possible duplicate of #44861.Note that the ICE requires a feature gate.
The text was updated successfully, but these errors were encountered: