Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Judgment prove_const_has_type at crates/formality-rust/src/prove/prove/prove/prove_const_has_type.rs:11

Signature:

prove_const_has_type(decls: Program, env: Env, assumptions: Wcs, constant: Const,) => (Ty, Constraints)

No applicable rule observed: at least one test exercised this judgment with no matching rule.

The number on each rule’s conclusion is positive coverage; the number on each premise is negative coverage. Click a number to browse the tests.

rigid constant
LineCoverageSource
──────── ("rigid constant")
293(prove_const_has_type(_decls, env, _assumptions, ConstData::Scalar(scalar)) => (scalar.ty(), Constraints::none(env)))
block
LineCoverageSource
34(borrow_check(TypeckEnv::for_const(env, decls), assumptions, FlowState::default(), block) => ())
──────── ("block")
36(prove_const_has_type(decls, env, assumptions, ConstData::Block(block)) => (Ty::unit(), Constraints::none(env)))