1error: indexing into a string may panic if the index is within a UTF-8 character
2  --> $DIR/string_slice.rs:5:6
3   |
4LL |     &"Ölkanne"[1..];
5   |      ^^^^^^^^^^^^^^
6   |
7   = note: `-D clippy::string-slice` implied by `-D warnings`
8
9error: indexing into a string may panic if the index is within a UTF-8 character
10  --> $DIR/string_slice.rs:7:6
11   |
12LL |     &m[2..5];
13   |      ^^^^^^^
14
15error: indexing into a string may panic if the index is within a UTF-8 character
16  --> $DIR/string_slice.rs:9:6
17   |
18LL |     &s[0..2];
19   |      ^^^^^^^
20
21error: aborting due to 3 previous errors
22
23