SHARE
TWEET

Untitled

a guest Apr 20th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
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
 
Top