Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- }
- struct User {
- storage: Storage
- }
- struct Foo;
- struct Bar;
- trait Foobar {}
- impl Foobar for Foo {}
- impl Foobar for Bar {}
- struct Storage {
- s: dyn Foobar,
- i: i32
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement