Function rustc_hir_typeck::coercion::coerce_mutbls

source ·
fn coerce_mutbls<'tcx>(
    from_mutbl: Mutability,
    to_mutbl: Mutability
) -> RelateResult<'tcx, ()>
Expand description

Coercing a mutable reference to an immutable works, while coercing &T to &mut T should be forbidden.