1 error[E0373]: closure may outlive the current function, but it borrows `p`, which is owned by the current function
2 --> $DIR/borrowck-4.rs:10:17
5 | ^^ may outlive borrowed value `p`
7 LL | println!("{:?}", p);
8 | - `p` is borrowed here
10 note: closure is returned here
11 --> $DIR/borrowck-4.rs:15:5
15 help: to force the closure to take ownership of `p` (and any other referenced variables), use the `move` keyword
17 LL | let mut c = move || {
20 error: aborting due to previous error
22 For more information about this error, try `rustc --explain E0373`.