Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. struct True;
  2. struct False;
  3.  
  4. trait Eq<B> {
  5. type Output;
  6. }
  7.  
  8. impl<A> Eq<A> for A{
  9. type Output = True;
  10. }
  11.  
  12. impl<A, B> Eq<A> for B {
  13. type Output = False;
  14. }
  15.  
  16. fn main() {
  17. println!("Hello, world!");
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement