Files
anything/src/nothing.rs
2023-09-22 03:45:53 -04:00

11 lines
230 B
Rust

pub auto trait NotNothing {}
impl !NotNothing for Nothing {}
impl <T> NotNothing for alloc::boxed::Box<T> {}
#[derive(Debug)]
pub struct Nothing;
impl<T: NotNothing> From<T> for Nothing {
fn from(_: T) -> Self { Nothing }
}