fn check_never_pattern<'tcx>(
cx: &RustcPatCtxt<'_, 'tcx>,
pat: &Pat<'tcx>,
) -> Result<(), ErrorGuaranteed>
Expand description
Check that never patterns are only used on inhabited types.
fn check_never_pattern<'tcx>(
cx: &RustcPatCtxt<'_, 'tcx>,
pat: &Pat<'tcx>,
) -> Result<(), ErrorGuaranteed>
Check that never patterns are only used on inhabited types.