]> git.proxmox.com Git - rustc.git/blobdiff - src/doc/book/listings/ch08-common-collections/listing-08-19/output.txt
New upstream version 1.64.0+dfsg1
[rustc.git] / src / doc / book / listings / ch08-common-collections / listing-08-19 / output.txt
index 2e5ad54777c64bca9470ce7c35518bfea746f187..95577772e1c292bb0eea2eb12c5d66e887a9363e 100644 (file)
@@ -7,6 +7,14 @@ error[E0277]: the type `String` cannot be indexed by `{integer}`
   |             ^^^^^ `String` cannot be indexed by `{integer}`
   |
   = help: the trait `Index<{integer}>` is not implemented for `String`
+  = help: the following other types implement trait `Index<Idx>`:
+            <String as Index<RangeFrom<usize>>>
+            <String as Index<RangeFull>>
+            <String as Index<RangeInclusive<usize>>>
+            <String as Index<RangeTo<usize>>>
+            <String as Index<RangeToInclusive<usize>>>
+            <String as Index<std::ops::Range<usize>>>
+            <str as Index<I>>
 
 For more information about this error, try `rustc --explain E0277`.
 error: could not compile `collections` due to previous error