diff --git a/src/error.rs b/src/error.rs index d6aee4f..353d8f2 100644 --- a/src/error.rs +++ b/src/error.rs @@ -5,3 +5,11 @@ pub enum Error { OutOfBounds(usize), BadBlockGroupCount(u32, u32), } + +impl From for Error { + fn from(_: Infallible) -> Error { + unreachable!() + } +} + +pub enum Infallible {}