Guest User

Untitled

a guest
Jun 22nd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. trait AssocTrait {
  2. type AItem;
  3. }
  4.  
  5. impl AssocTrait for () {
  6. type AItem = ();
  7. }
  8.  
  9. trait Trait: AssocTrait<AItem = <Self as Trait>::Item> {
  10. type Item: std::fmt::Debug;
  11. }
  12.  
  13.  
  14. impl <A> dyn Trait<AItem = A, Item = A> {
  15.  
  16. }
  17.  
  18. fn main() {}
Add Comment
Please, Sign In to add comment