diff options
| author | Lzu Tao <taolzu@gmail.com> | 2020-09-05 02:17:22 +0000 |
|---|---|---|
| committer | Lzu Tao <taolzu@gmail.com> | 2020-09-05 02:17:22 +0000 |
| commit | dfd219d6e77311a19a630461b08f6fb3e06b0dd2 (patch) | |
| tree | 8f6e5cc69c5be53d5b428abf41b6145a49fc266c /src | |
| parent | 70c5f6efc445963bbfa5dd53f81c245741eac8cb (diff) | |
| download | rust-dfd219d6e77311a19a630461b08f6fb3e06b0dd2.tar.gz rust-dfd219d6e77311a19a630461b08f6fb3e06b0dd2.zip | |
Indent a note to make folding work nicer
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ui/str/str-idx.stderr | 6 | ||||
| -rw-r--r-- | src/test/ui/str/str-mut-idx.stderr | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/test/ui/str/str-idx.stderr b/src/test/ui/str/str-idx.stderr index ef7ce735868..f323ba03c01 100644 --- a/src/test/ui/str/str-idx.stderr +++ b/src/test/ui/str/str-idx.stderr @@ -6,7 +6,7 @@ LL | let _: u8 = s[4]; | = help: the trait `SliceIndex<str>` is not implemented for `{integer}` = note: you can use `.chars().nth()` or `.bytes().nth()` - see chapter in The Book <https://doc.rust-lang.org/book/ch08-02-strings.html#indexing-into-strings> + for more information, see chapter 8 in The Book: <https://doc.rust-lang.org/book/ch08-02-strings.html#indexing-into-strings> = note: required because of the requirements on the impl of `Index<{integer}>` for `str` error[E0277]: the type `str` cannot be indexed by `{integer}` @@ -17,7 +17,7 @@ LL | let _ = s.get(4); | = help: the trait `SliceIndex<str>` is not implemented for `{integer}` = note: you can use `.chars().nth()` or `.bytes().nth()` - see chapter in The Book <https://doc.rust-lang.org/book/ch08-02-strings.html#indexing-into-strings> + for more information, see chapter 8 in The Book: <https://doc.rust-lang.org/book/ch08-02-strings.html#indexing-into-strings> error[E0277]: the type `str` cannot be indexed by `{integer}` --> $DIR/str-idx.rs:5:29 @@ -27,7 +27,7 @@ LL | let _ = s.get_unchecked(4); | = help: the trait `SliceIndex<str>` is not implemented for `{integer}` = note: you can use `.chars().nth()` or `.bytes().nth()` - see chapter in The Book <https://doc.rust-lang.org/book/ch08-02-strings.html#indexing-into-strings> + for more information, see chapter 8 in The Book: <https://doc.rust-lang.org/book/ch08-02-strings.html#indexing-into-strings> error[E0277]: the type `str` cannot be indexed by `char` --> $DIR/str-idx.rs:6:17 diff --git a/src/test/ui/str/str-mut-idx.stderr b/src/test/ui/str/str-mut-idx.stderr index abb9b09cf38..405542820a3 100644 --- a/src/test/ui/str/str-mut-idx.stderr +++ b/src/test/ui/str/str-mut-idx.stderr @@ -39,7 +39,7 @@ LL | s.get_mut(1); | = help: the trait `SliceIndex<str>` is not implemented for `{integer}` = note: you can use `.chars().nth()` or `.bytes().nth()` - see chapter in The Book <https://doc.rust-lang.org/book/ch08-02-strings.html#indexing-into-strings> + for more information, see chapter 8 in The Book: <https://doc.rust-lang.org/book/ch08-02-strings.html#indexing-into-strings> error[E0277]: the type `str` cannot be indexed by `{integer}` --> $DIR/str-mut-idx.rs:11:25 @@ -49,7 +49,7 @@ LL | s.get_unchecked_mut(1); | = help: the trait `SliceIndex<str>` is not implemented for `{integer}` = note: you can use `.chars().nth()` or `.bytes().nth()` - see chapter in The Book <https://doc.rust-lang.org/book/ch08-02-strings.html#indexing-into-strings> + for more information, see chapter 8 in The Book: <https://doc.rust-lang.org/book/ch08-02-strings.html#indexing-into-strings> error[E0277]: the type `str` cannot be indexed by `char` --> $DIR/str-mut-idx.rs:13:5 |
