Function rustc_hir_typeck::upvar::restrict_precision_for_drop_types
source · fn restrict_precision_for_drop_types<'a, 'tcx>(
fcx: &'a FnCtxt<'a, 'tcx>,
place: Place<'tcx>,
curr_mode: UpvarCapture,
) -> (Place<'tcx>, UpvarCapture)
Expand description
Rust doesn’t permit moving fields out of a type that implements drop