Guest User

Untitled

a guest
Oct 16th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. use std::sync::*;
  2.  
  3. #[derive(Default, Clone)]
  4. struct Foo {
  5. bar: Box<Arc<Mutex<String>>>,
  6. }
  7.  
  8. fn main() {
  9. let complex_thing = Foo::default();
  10. let get_me_the_type: () = complex_thing.bar.clone();
  11. }
Add Comment
Please, Sign In to add comment