summaryrefslogtreecommitdiffstats
path: root/src/doc/book/listings/ch08-common-collections/listing-08-06/output.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc/book/listings/ch08-common-collections/listing-08-06/output.txt')
-rw-r--r--src/doc/book/listings/ch08-common-collections/listing-08-06/output.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/doc/book/listings/ch08-common-collections/listing-08-06/output.txt b/src/doc/book/listings/ch08-common-collections/listing-08-06/output.txt
index ab512a9e6..3104205f3 100644
--- a/src/doc/book/listings/ch08-common-collections/listing-08-06/output.txt
+++ b/src/doc/book/listings/ch08-common-collections/listing-08-06/output.txt
@@ -5,12 +5,12 @@ error[E0502]: cannot borrow `v` as mutable because it is also borrowed as immuta
|
4 | let first = &v[0];
| - immutable borrow occurs here
-5 |
+5 |
6 | v.push(6);
| ^^^^^^^^^ mutable borrow occurs here
-7 |
-8 | println!("The first element is: {}", first);
- | ----- immutable borrow later used here
+7 |
+8 | println!("The first element is: {first}");
+ | ----- immutable borrow later used here
For more information about this error, try `rustc --explain E0502`.
error: could not compile `collections` due to previous error