rustc_trait_selection::error_reporting::traits::suggestions

Function hint_missing_borrow

Source
fn hint_missing_borrow<'tcx>(
    infcx: &InferCtxt<'tcx>,
    param_env: ParamEnv<'tcx>,
    span: Span,
    found: Ty<'tcx>,
    expected: Ty<'tcx>,
    found_node: Node<'_>,
    err: &mut Diag<'_>,
)
Expand description

Add a hint to add a missing borrow or remove an unnecessary one.