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