clippy_utils::ty

Function 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.