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