1 error[E0277]: the size for values of type `str` cannot be known at compilation time
2 --> $DIR/str-mut-idx.rs:4:15
5 | ^^^ doesn't have a size known at compile-time
7 = help: the trait `Sized` is not implemented for `str`
8 note: required by a bound in `bot`
9 --> $DIR/str-mut-idx.rs:1:8
11 LL | fn bot<T>() -> T { loop {} }
12 | ^ required by this bound in `bot`
13 help: consider relaxing the implicit `Sized` restriction
15 LL | fn bot<T: ?Sized>() -> T { loop {} }
18 error[E0277]: the size for values of type `str` cannot be known at compilation time
19 --> $DIR/str-mut-idx.rs:4:5
22 | ^^^^^^^ doesn't have a size known at compile-time
24 = help: the trait `Sized` is not implemented for `str`
25 = note: the left-hand-side of an assignment must have a statically known size
27 error[E0277]: the type `str` cannot be indexed by `usize`
28 --> $DIR/str-mut-idx.rs:7:5
30 LL | s[1usize] = bot();
31 | ^^^^^^^^^ string indices are ranges of `usize`
33 = help: the trait `SliceIndex<str>` is not implemented for `usize`
34 = note: required because of the requirements on the impl of `Index<usize>` for `str`
36 error[E0277]: the type `str` cannot be indexed by `{integer}`
37 --> $DIR/str-mut-idx.rs:9:15
40 | ^ string indices are ranges of `usize`
42 = help: the trait `SliceIndex<str>` is not implemented for `{integer}`
43 = note: you can use `.chars().nth()` or `.bytes().nth()`
44 for more information, see chapter 8 in The Book: <https://doc.rust-lang.org/book/ch08-02-strings.html#indexing-into-strings>
46 error[E0277]: the type `str` cannot be indexed by `{integer}`
47 --> $DIR/str-mut-idx.rs:11:25
49 LL | s.get_unchecked_mut(1);
50 | ^ string indices are ranges of `usize`
52 = help: the trait `SliceIndex<str>` is not implemented for `{integer}`
53 = note: you can use `.chars().nth()` or `.bytes().nth()`
54 for more information, see chapter 8 in The Book: <https://doc.rust-lang.org/book/ch08-02-strings.html#indexing-into-strings>
56 error[E0277]: the type `str` cannot be indexed by `char`
57 --> $DIR/str-mut-idx.rs:13:5
60 | ^^^^^^ string indices are ranges of `usize`
62 = help: the trait `SliceIndex<str>` is not implemented for `char`
63 = note: required because of the requirements on the impl of `Index<char>` for `str`
65 error: aborting due to 6 previous errors
67 For more information about this error, try `rustc --explain E0277`.