Guest User

Untitled

a guest
Aug 16th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #![allow(dead_code)]
  2.  
  3. trait Trait {
  4. fn func1() {} // default impl
  5. fn func2 ();
  6. }
  7.  
  8. struct Obj1();
  9. struct Obj2();
  10.  
  11. impl Trait for Obj1 {
  12. fn func2 () {}
  13. }
  14.  
  15. impl Trait for Obj2 {
  16. fn func1 () {}
  17. fn func2 () {}
  18. }
  19.  
  20. fn main(){}
Add Comment
Please, Sign In to add comment