/// Unpack the `GenericArg` as a const when it is known certainly to be a const.
Unpack the `GenericArg` as a const when it is known certainly to be a const.
Unpack the ` GenericArg ` as a const when it is known certainly to be a const .
pub fn expect_const(self) -> ty::Const<'tcx> {
        match self.unpack() {
            GenericArgKind::Const(c) => c,
            _ => bug!("expected a const, but found another kind"),
        }
    }
pub fn expect_const ( self ) -> ty :: Const < ' tcx > { match self . unpack ( ) { GenericArgKind :: Const ( c ) => c , _ => bug ! ( " " ) , } }
Unpack the `GenericArg` as a const when it is known certainly to be a const.
Unpack the ` GenericArg ` as a const when it is known certainly to be a const .
self