Function clippy_utils::ty::is_never_like
source ยท pub fn is_never_like(ty: Ty<'_>) -> bool
Expand description
Returns whether ty
is never-like; i.e., !
(never) or an enum with zero variants.
pub fn is_never_like(ty: Ty<'_>) -> bool
Returns whether ty
is never-like; i.e., !
(never) or an enum with zero variants.