SHARE
TWEET

Untitled

a guest Apr 20th, 2019 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. struct Yes;
  2. struct No;
  3.  
  4. trait Printer {fn print();}
  5.  
  6. impl Printer for Yes {fn print(){println!("YES");}}
  7. impl Printer for No {fn print(){println!("NO");}}
  8.  
  9. trait Foo<A, B> {
  10.     type Out;
  11. }
  12.  
  13.  
  14.  
  15. fn main() {
  16.  
  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