When reading Rust convert.rs, I found the following code:
#[unstable(feature = "try_from", issue = "33417")] #[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] pub enum Infallible {} #[unstable(feature = "try_from", issue = "33417")] impl fmt::Display for Infallible { fn fmt(&self, _: &mut fmt::Formatter) -> fmt::Result { match *self { } } }
Infallible is an empty listing with no options. What returns match *self {} ?
source share