Calling std::mem::size_of::<T> in a generic constexpr context errors. #45598
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
I-compiletime
Issue: Problems and improvements with respect to compile times.
This code fails to build right now, while it should succeed (as
std::mem::size_of::<T>
isconst
):The text was updated successfully, but these errors were encountered: