You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
associated type_consts can have defaults without the associated_type_defaults feature gate #130288
We don't allow this for types, e.g. type Assoc = u32;. I expect associated type consts to have equivalent problems to associated type defaults given they are functionally equivalent in the type system. We should feature gate this under associated_type_defaults
changed the title [-]Trait associated constants can have defaults while types cant[/-][+]associated type_consts can have defaults without the `associated_type_defaults` feature gate[/+]on Feb 3, 2026
Activity
[-]Trait associated constants can have defaults while types cant[/-][+]associated type_consts can have defaults without the `associated_type_defaults` feature gate[/+]LaneAsade commentedon Feb 7, 2026
@rustbot claim
Rollup merge of rust-lang#152385 - LaneAsade:gate-type-const-defaults…
Rollup merge of rust-lang#152385 - LaneAsade:gate-type-const-defaults…
Rollup merge of rust-lang#152385 - LaneAsade:gate-type-const-defaults…
Unrolled build for #152385
fmease commentedon Apr 6, 2026
This was fixed in PR #152385.