1 error[E0596]: cannot borrow data in a `&` reference as mutable
2 --> $DIR/dont-print-desugared.rs:4:10
4 LL | for &ref mut x in s {}
7 | |cannot borrow as mutable through `&` reference
8 | help: consider changing this to be a mutable reference: `&mut ref mut x`
10 error[E0597]: `y` does not live long enough
11 --> $DIR/dont-print-desugared.rs:17:16
13 LL | for ref mut d in v {
14 | - a temporary with access to the borrow is created here ...
17 | ^^ borrowed value does not live long enough
21 | `y` dropped here while still borrowed
22 | ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `D`
24 error: aborting due to 2 previous errors
26 Some errors have detailed explanations: E0596, E0597.
27 For more information about an error, try `rustc --explain E0596`.