1 warning: the feature `capture_disjoint_fields` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/simple-struct-min-capture.rs:4:12
4 LL | #![feature(capture_disjoint_fields)]
5 | ^^^^^^^^^^^^^^^^^^^^^^^
7 = note: `#[warn(incomplete_features)]` on by default
8 = note: see issue #53488 <https://github.com/rust-lang/rust/issues/53488> for more information
10 error[E0502]: cannot borrow `p` as immutable because it is also borrowed as mutable
11 --> $DIR/simple-struct-min-capture.rs:23:22
14 | -- mutable borrow occurs here
16 | - first borrow occurs due to use of `p` in closure
18 LL | println!("{:?}", p);
19 | ^ immutable borrow occurs here
22 | - mutable borrow later used here
24 error: aborting due to previous error; 1 warning emitted
26 For more information about this error, try `rustc --explain E0502`.