1 error[E0504]: cannot move `fancy_num` into closure because it is borrowed
2 --> $DIR/E0504.rs:20:40
4 LL | let fancy_ref = &fancy_num;
5 | --------- borrow of `fancy_num` occurs here
7 LL | println!("child function: {}", fancy_num.num); //~ ERROR E0504
8 | ^^^^^^^^^ move into closure occurs here
10 error: aborting due to previous error
12 For more information about this error, try `rustc --explain E0504`.