1
Fork 0

Add Constructor::Never

This commit is contained in:
Nadrieril 2024-01-31 00:57:56 +01:00
parent 844f173b5c
commit 1ec73d70fa
3 changed files with 15 additions and 8 deletions

View file

@ -189,6 +189,7 @@ impl<Cx: TypeCx> fmt::Debug for DeconstructedPat<Cx> {
}
Ok(())
}
Never => write!(f, "!"),
Wildcard | Missing | NonExhaustive | Hidden | PrivateUninhabited => {
write!(f, "_ : {:?}", pat.ty())
}