Files
rust/tests/ui/const-generics
Jacob Pratt ffb0b60f0f Rollup merge of #157773 - LaneAsade:generic_anon_consts, r=BoxyUwU
Remove AnonConstKind::GCA and reject generic anon consts

Previously, a `GCA` type const (`type const FOO<const N: usize>: usize = const { N + 1 };`) was a type-system-transparent type const whose body immediately thunked out to an opaque regular const (albeit an anon const). The fact that there was a transparent wrapper wasn't providing anything of value, now that the user can write and https://github.com/rust-lang/rust/pull/155341.

With this PR, `GCA` variant is removed from `AnonConstKind` so that generic anon consts are rejected.

Related: https://github.com/rust-lang/project-const-generics/issues/113
2026-06-13 04:06:01 -04:00
..
2026-06-11 06:31:12 +05:30
2026-03-11 00:43:04 +00:00
2026-03-04 08:06:45 +08:00
2025-12-02 18:25:13 +00:00
2025-07-31 21:25:49 +05:00