Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use std::sync::*;
- #[derive(Default, Clone)]
- struct Foo {
- bar: Box<Arc<Mutex<String>>>,
- }
- fn main() {
- let complex_thing = Foo::default();
- let get_me_the_type: () = complex_thing.bar.clone();
- }
Add Comment
Please, Sign In to add comment