hir_ty::consteval

Function unknown_const_as_generic

source
pub fn unknown_const_as_generic(ty: Ty) -> GenericArg