1 error[E0506]: cannot assign to `fancy_num` because it is borrowed
4 LL | let fancy_ref = &fancy_num;
5 | ---------- borrow of `fancy_num` occurs here
6 LL | fancy_num = FancyNum { num: 6 }; //[ast]~ ERROR E0506
7 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ assignment to borrowed `fancy_num` occurs here
9 LL | println!("Num: {}, Ref: {}", fancy_num.num, fancy_ref.num);
10 | ------------- borrow later used here
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0506`.