SHARE
TWEET

Untitled

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