2018-02-07 21:35:35 -06:00
|
|
|
error[E0504]: cannot move `fancy_num` into closure because it is borrowed
|
|
|
|
--> $DIR/E0504.rs:20:40
|
|
|
|
|
|
|
|
|
17 | let fancy_ref = &fancy_num;
|
|
|
|
| --------- borrow of `fancy_num` occurs here
|
|
|
|
...
|
|
|
|
20 | println!("child function: {}", fancy_num.num); //~ ERROR E0504
|
|
|
|
| ^^^^^^^^^ move into closure occurs here
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0504"
|