fn infer_universe(context: &Context, raw_term: &raw::RcTerm) -> Result<(RcTerm, Level), TypeError> {
    let (term, ty) = infer_term(context, raw_term)?;
    match *ty {
        Value::Universe(level) => Ok((term, level)),
        _ => Err(TypeError::ExpectedUniverse {
            span: raw_term.span(),
            found: Box::new(ty.resugar(context.resugar_env())),
        }),
    }
}
/// Ensures that the given term is a universe, returning the level of that
/// universe and its elaborated form.
Ensures that the given term is a universe, returning the level of that
universe and its elaborated form.
Ensures that the given term is a universe returning the level of that universe and its elaborated form .
fn infer_universe(context: &Context, raw_term: &raw::RcTerm) -> Result<(RcTerm, Level), TypeError> {
    let (term, ty) = infer_term(context, raw_term)?;
    match *ty {
        Value::Universe(level) => Ok((term, level)),
        _ => Err(TypeError::ExpectedUniverse {
            span: raw_term.span(),
            found: Box::new(ty.resugar(context.resugar_env())),
        }),
    }
}
fn infer_universe ( context : & Context , raw_term : & raw :: RcTerm ) -> Result < ( RcTerm , Level ) , TypeError > { let ( term , ty ) = infer_term ( context , raw_term ) ? ; match * ty { Value :: Universe ( level ) => Ok ( ( term , level ) ) , _ => Err ( TypeError :: ExpectedUniverse { span : raw_term . span ( ) , found : Box :: new ( ty . resugar ( context . resugar_env ( ) ) ) , } ) , } }
Ensures that the given term is a universe, returning the level of that
universe and its elaborated form.
Ensures that the given term is a universe returning the level of that universe and its elaborated form .
context
&Context
raw_term
&raw::RcTerm
context
&Context
raw_term
&raw::RcTerm