]> git.proxmox.com Git - rustc.git/blame - src/test/ui/nll/maybe-initialized-drop.stderr
Update upstream source from tag 'upstream/1.31.0_beta.4+dfsg1'
[rustc.git] / src / test / ui / nll / maybe-initialized-drop.stderr
CommitLineData
ff7c6d11
XL
1error[E0506]: cannot assign to `x` because it is borrowed
2 --> $DIR/maybe-initialized-drop.rs:26:5
3 |
0531ce1d 4LL | let wrap = Wrap { p: &mut x };
ff7c6d11 5 | ------ borrow of `x` occurs here
0531ce1d 6LL | x = 1; //~ ERROR cannot assign to `x` because it is borrowed [E0506]
ff7c6d11 7 | ^^^^^ assignment to borrowed `x` occurs here
0531ce1d 8LL | }
0bf4aa26 9 | - borrow might be used here, when `wrap` is dropped and runs the `Drop` code for type `Wrap`
ff7c6d11
XL
10
11error: aborting due to previous error
12
0531ce1d 13For more information about this error, try `rustc --explain E0506`.