1 error[E0506]: cannot assign to `v[_]` because it is borrowed
2 --> $DIR/drop-no-may-dangle.rs:18:9
4 LL | let p: WrapMayNotDangle<&usize> = WrapMayNotDangle { value: &v[0] };
5 | ----- `v[_]` is borrowed here
8 | ^^^^^^^^^ `v[_]` is assigned to here but it was already borrowed
11 | - borrow might be used here, when `p` is dropped and runs the `Drop` code for type `WrapMayNotDangle`
13 error[E0506]: cannot assign to `v[_]` because it is borrowed
14 --> $DIR/drop-no-may-dangle.rs:21:5
16 LL | let p: WrapMayNotDangle<&usize> = WrapMayNotDangle { value: &v[0] };
17 | ----- `v[_]` is borrowed here
20 | ^^^^^^^^^ `v[_]` is assigned to here but it was already borrowed
22 | - borrow might be used here, when `p` is dropped and runs the `Drop` code for type `WrapMayNotDangle`
24 error: aborting due to 2 previous errors
26 For more information about this error, try `rustc --explain E0506`.