mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-03 13:37:37 +00:00
![]() min_const_generics: allow ty param in repeat expr implements https://rust-lang.zulipchat.com/#narrow/stream/260443-project-const-generics/topic/repeat.20expressions Even with `min_const_generics` active, now keeps resulting in future compat warnings instead of hard errors. Const parameters, for example `[0; N + 1]`, still result in hard errors during resolve. ```rust #![allow(dead_code)] fn foo<T>() { [0; std::mem::size_of::<*mut T>()]; } struct Foo<T>(T); impl<T> Foo<T> { const ASSOC: usize = 4; fn test() { [0; Self::ASSOC]; } } ``` r? @varkor cc @petrochenkov |
||
---|---|---|
.. | ||
arena.rs | ||
def.rs | ||
definitions.rs | ||
hir_id.rs | ||
hir.rs | ||
intravisit.rs | ||
itemlikevisit.rs | ||
lang_items.rs | ||
lib.rs | ||
pat_util.rs | ||
stable_hash_impls.rs | ||
target.rs | ||
weak_lang_items.rs |