1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// Test provided in #4 // https://github.com/jmg-duarte/sealed-rs/issues/4 use sealed::sealed; #[sealed] pub trait Set<V> {} #[sealed] impl<T> Set<Option<T>> for T {} #[sealed] impl<T> Set<Option<T>> for Option<T> {} fn main() {}