1 error[E0505]: cannot move out of `fancy_num` because it is borrowed
4 LL | let fancy_ref = &fancy_num;
5 | ---------- borrow of `fancy_num` occurs here
8 | ^^^^^^^ move out of `fancy_num` occurs here
9 LL | println!("child function: {}", fancy_num.num);
10 | ------------- move occurs due to use in closure
12 LL | println!("main function: {}", fancy_ref.num);
13 | ------------- borrow later used here
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0505`.