by Georgelemental · 2mo ago · 0 comments
This is incorrect. The compiler has always treated `Infallible` as uninhabited, and used that fact for optimizations. The downside of its lack of compiler support is losing out on the coercions. (The article is excellent otherwise)
Yeah this statement is incorrect as well. Weird to have these minor technical inaccuracies in a relatively detailed article.
enum MyNeverType {}
...and it's uninhabited, the same way you can write the product of nothing struct MyUnitType {}
... and its size is zero.