Advertisement
Guest User

Untitled

a guest
Oct 10th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. fn main() {
  2.  
  3. }
  4.  
  5. struct User {
  6. storage: Storage
  7. }
  8.  
  9. struct Foo;
  10. struct Bar;
  11.  
  12. trait Foobar {}
  13.  
  14. impl Foobar for Foo {}
  15. impl Foobar for Bar {}
  16.  
  17. struct Storage {
  18. s: dyn Foobar,
  19. i: i32
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement