]> git.proxmox.com Git - rustc.git/blame - src/doc/book/listings/ch04-understanding-ownership/no-listing-10-multiple-mut-not-allowed/output.txt
New upstream version 1.67.1+dfsg1
[rustc.git] / src / doc / book / listings / ch04-understanding-ownership / no-listing-10-multiple-mut-not-allowed / output.txt
CommitLineData
74b04a01
XL
1$ cargo run
2 Compiling ownership v0.1.0 (file:///projects/ownership)
3error[E0499]: cannot borrow `s` as mutable more than once at a time
4 --> src/main.rs:5:14
5 |
64 | let r1 = &mut s;
7 | ------ first mutable borrow occurs here
85 | let r2 = &mut s;
9 | ^^^^^^ second mutable borrow occurs here
487cf647 106 |
74b04a01
XL
117 | println!("{}, {}", r1, r2);
12 | -- first borrow later used here
13
74b04a01 14For more information about this error, try `rustc --explain E0499`.
c295e0f8 15error: could not compile `ownership` due to previous error