rustc_hir_analysis::check

Function bad_variant_count

Source
fn bad_variant_count<'tcx>(
    tcx: TyCtxt<'tcx>,
    adt: AdtDef<'tcx>,
    sp: Span,
    did: DefId,
)
Expand description

Emit an error when encountering two or more variants in a transparent enum.