Calling std::mem::size_of::<T> in a generic constexpr context errors. #45598
Labels
A-const-fn
Area: const fn foo(..) {..}. Pure functions which can be applied at compile time.
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: