Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- trait TraitA { type Item: ?Sized; }
- trait TraitB<T> { }
- impl<X: TraitA> TraitB<X> for X::Item { }
- impl TraitA for () {
- type Item = dyn TraitB<()>;
- }
- fn main() { }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement