Making a type level type function with `typenum` crate

Does this not work?

type CalcMinUIntType<N> = Shleft<U1, Add1<Log2<Length<N>>>>;
assert_type_eq!(CalcMinUIntType<U69>, U8);
2 Likes