summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0504.stderr
blob: a987713a11d17210eb85bb10679e96612b959a55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0504]: cannot move `fancy_num` into closure because it is borrowed
  --> $DIR/E0504.rs:10:40
   |
LL |     let fancy_ref = &fancy_num;
   |                      --------- borrow of `fancy_num` occurs here
...
LL |         println!("child function: {}", fancy_num.num);
   |                                        ^^^^^^^^^ move into closure occurs here

error: aborting due to previous error

For more information about this error, try `rustc --explain E0504`.