]> git.lizzy.rs Git - rust.git/blob - tests/ui/out_of_bounds_indexing/simple.stderr
Fix type checks for `manual_str_repeat`
[rust.git] / tests / ui / out_of_bounds_indexing / simple.stderr
1 error: range is out of bounds
2   --> $DIR/simple.rs:7:11
3    |
4 LL |     &x[..=4];
5    |           ^
6    |
7    = note: `-D clippy::out-of-bounds-indexing` implied by `-D warnings`
8
9 error: range is out of bounds
10   --> $DIR/simple.rs:8:11
11    |
12 LL |     &x[1..5];
13    |           ^
14
15 error: range is out of bounds
16   --> $DIR/simple.rs:9:8
17    |
18 LL |     &x[5..];
19    |        ^
20
21 error: range is out of bounds
22   --> $DIR/simple.rs:10:10
23    |
24 LL |     &x[..5];
25    |          ^
26
27 error: range is out of bounds
28   --> $DIR/simple.rs:11:8
29    |
30 LL |     &x[5..].iter().map(|x| 2 * x).collect::<Vec<i32>>();
31    |        ^
32
33 error: range is out of bounds
34   --> $DIR/simple.rs:12:12
35    |
36 LL |     &x[0..=4];
37    |            ^
38
39 error: aborting due to 6 previous errors
40