error: unconstrained generic constant --> $DIR/issue-51892.rs:14:17 | LL | type Type = [u8; std::mem::size_of::<::Type>()]; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | help: try adding a `where` bound | LL | type Type = [u8; std::mem::size_of::<::Type>()] where [(); std::mem::size_of::<::Type>()]:; | ++++++++++++++++++++++++++++++++++++++++++++++++++++++ error: aborting due to 1 previous error