1use std::{error::Error, fmt}; 2 3#[derive(Debug)] 4pub enum Never {} 5 6impl fmt::Display for Never { 7 fn fmt(&self, _: &mut fmt::Formatter) -> fmt::Result { 8 match *self {} 9 } 10} 11 12impl Error for Never {}