2 ms·
Bad example, that should panic (in a perfect world it should be a compile error). The invariant of the type is that `E::Rest` cannot hold zero.
by duped 3y ago
Bad example, that should panic (in a perfect world it should be a compile error). The invariant of the type is that `E::Rest` cannot hold zero.
- hurril 3y agoWhy is that a bad example? It's proof that implementing From does not solve the problem.