Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #![feature(specialization)]
  2.  
  3. trait Foo {}
  4.  
  5. struct A;
  6.  
  7. impl From<&A> for A {
  8. fn from(_: &A) -> A { A }
  9. }
  10.  
  11. impl<K, V> Foo for (K, V)
  12. where
  13. K: Into<A>,
  14. V: Into<A>,
  15. {}
  16.  
  17. impl Foo for (&A, &A) {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement