Guest User

Untitled

a guest
Jul 20th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. trait A {
  2. fn print(&self) {}
  3. }
  4.  
  5. impl A for i32 {
  6. fn print(&self) {
  7. println!("a {}", self)
  8. }
  9. }
  10.  
  11. trait B {
  12. fn print(&self) {}
  13. }
  14.  
  15. impl B for i32 {
  16. fn print(&self) {
  17. println!("b {}", self)
  18. }
  19. }
  20.  
  21. fn main() {
  22. let gay = 3;
  23. gay.print();
  24. }
Add Comment
Please, Sign In to add comment