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.
fn coerce_mutbls<'tcx>(
from_mutbl: Mutability,
to_mutbl: Mutability,
) -> RelateResult<'tcx, ()>
Coercing a mutable reference to an immutable works, while
coercing &T
to &mut T
should be forbidden.