]> git.proxmox.com Git - rustc.git/blame - tests/ui/borrowck/two-phase-sneaky.stderr
New upstream version 1.76.0+dfsg1
[rustc.git] / tests / ui / borrowck / two-phase-sneaky.stderr
CommitLineData
b7449926 1error[E0499]: cannot borrow `v` as mutable more than once at a time
923072b8 2 --> $DIR/two-phase-sneaky.rs:10:9
b7449926
XL
3 |
4LL | v[0].push_str({
48663c56
XL
5 | - -------- first borrow later used by call
6 | |
7 | first mutable borrow occurs here
923072b8 8LL |
b7449926 9LL | v.push(format!("foo"));
add651ee 10 | ^ second mutable borrow occurs here
b7449926 11
4b012472 12error: aborting due to 1 previous error
b7449926
XL
13
14For more information about this error, try `rustc --explain E0499`.