fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
664 B23 linesraw
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   = help: to override `-D warnings` add `#[allow(clippy::string_slice)]`
9
10error: indexing into a string may panic if the index is within a UTF-8 character
11  --> $DIR/string_slice.rs:9:6
12   |
13LL |     &m[2..5];
14   |      ^^^^^^^
15
16error: indexing into a string may panic if the index is within a UTF-8 character
17  --> $DIR/string_slice.rs:12:6
18   |
19LL |     &s[0..2];
20   |      ^^^^^^^
21
22error: aborting due to 3 previous errors
23