hir_ty::consteval

Function unknown_const_as_generic

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