SHARE
TWEET

Untitled

a guest Sep 17th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. trait TraitA { type Item: ?Sized; }
  2.  
  3. trait TraitB<T> { }
  4.  
  5. impl<X: TraitA> TraitB<X> for X::Item { }
  6.  
  7. impl TraitA for () {
  8.     type Item = dyn TraitB<()>;
  9. }
  10.  
  11. fn main() { }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top