Guest User

Untitled

a guest
Jan 18th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. trait Container {
  2. type Value;
  3. }
  4.  
  5. impl Container for i32 {
  6. type Value = i32;
  7. }
  8. impl Container for bool {
  9. type Value = bool;
  10. }
  11.  
  12.  
  13. struct Foo {
  14. inner: Box<dyn Container>,
  15. }
  16.  
  17. fn main() {}
Add Comment
Please, Sign In to add comment