]> git.proxmox.com Git - rustc.git/blobdiff - src/doc/book/listings/ch04-understanding-ownership/no-listing-12-immutable-and-mutable-not-allowed/output.txt
New upstream version 1.67.1+dfsg1
[rustc.git] / src / doc / book / listings / ch04-understanding-ownership / no-listing-12-immutable-and-mutable-not-allowed / output.txt
index df94c30e98cb5397e3c92a24e8a05cda4c162f6a..d1e9db2c4b787a7376f671811952a435e1879727 100644 (file)
@@ -8,7 +8,7 @@ error[E0502]: cannot borrow `s` as mutable because it is also borrowed as immuta
 5 |     let r2 = &s; // no problem
 6 |     let r3 = &mut s; // BIG PROBLEM
   |              ^^^^^^ mutable borrow occurs here
-7 | 
+7 |
 8 |     println!("{}, {}, and {}", r1, r2, r3);
   |                                -- immutable borrow later used here