Skip to main content

is_ty_uninhabited_from

Function is_ty_uninhabited_from 

Source
pub(crate) fn is_ty_uninhabited_from<'db>(
    infcx: &InferCtxt<'db>,
    ty: Ty<'db>,
    target_mod: ModuleId,
    env: ParamEnv<'db>,
) -> bool
Expand description

Checks whether a type is visibly uninhabited from a particular module.