Source code

Revision control

Copy as Markdown

Other Tools

---
source: codespan-reporting/tests/term.rs
expression: TEST_DATA.emit_no_color(&config)
---
error[E0499]: cannot borrow `v` as mutable more than once at a time
--> one_line.rs:3:12
|
3 | v.push(v.pop().unwrap());
| - ---- ^ second mutable borrow occurs here
| | |
| | first mutable borrow occurs here
| first borrow later used by call
error: aborting due to previous error
= For more information about this error, try `rustc --explain E0499`.