ICEs and transmutes in safe Rust with associated_type_defaults and generic_associated_types #74816
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-GATs
Area: Generic associated types (GATs)
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
F-associated_type_defaults
`#![feature(associated_type_defaults)]`
F-generic_associated_types
`#![feature(generic_associated_types)]` a.k.a. GATs
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
I-unsound
Issue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/Soundness
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.
(Playground)
Errors:
Removing the
generic_associated_types
makes this generate appropriate error messages. Seems like combiningassociated_type_defaults
andgeneric_associated_types
is rather uncommon, at least there are no other issues with both labels yet.@rustbot modify labels: I-ICE, T-compiler, requires-nightly, F-associated_type_defaults, F-generic_associated_types, A-traits, A-associated-items, C-bug
The text was updated successfully, but these errors were encountered: