]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/suspicious_splitn.stderr
Rollup merge of #85663 - fee1-dead:document-arc-from, r=m-ou-se
[rust.git] / src / tools / clippy / tests / ui / suspicious_splitn.stderr
1 error: `splitn` called with `0` splits
2   --> $DIR/suspicious_splitn.rs:9:13
3    |
4 LL |     let _ = "a,b".splitn(0, ',');
5    |             ^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::suspicious-splitn` implied by `-D warnings`
8    = note: the resulting iterator will always return `None`
9
10 error: `rsplitn` called with `0` splits
11   --> $DIR/suspicious_splitn.rs:10:13
12    |
13 LL |     let _ = "a,b".rsplitn(0, ',');
14    |             ^^^^^^^^^^^^^^^^^^^^^
15    |
16    = note: the resulting iterator will always return `None`
17
18 error: `splitn` called with `1` split
19   --> $DIR/suspicious_splitn.rs:11:13
20    |
21 LL |     let _ = "a,b".splitn(1, ',');
22    |             ^^^^^^^^^^^^^^^^^^^^
23    |
24    = note: the resulting iterator will always return the entire string followed by `None`
25
26 error: `splitn` called with `0` splits
27   --> $DIR/suspicious_splitn.rs:12:13
28    |
29 LL |     let _ = [0, 1, 2].splitn(0, |&x| x == 1);
30    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31    |
32    = note: the resulting iterator will always return `None`
33
34 error: `splitn_mut` called with `0` splits
35   --> $DIR/suspicious_splitn.rs:13:13
36    |
37 LL |     let _ = [0, 1, 2].splitn_mut(0, |&x| x == 1);
38    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39    |
40    = note: the resulting iterator will always return `None`
41
42 error: `splitn` called with `1` split
43   --> $DIR/suspicious_splitn.rs:14:13
44    |
45 LL |     let _ = [0, 1, 2].splitn(1, |&x| x == 1);
46    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
47    |
48    = note: the resulting iterator will always return the entire slice followed by `None`
49
50 error: `rsplitn_mut` called with `1` split
51   --> $DIR/suspicious_splitn.rs:15:13
52    |
53 LL |     let _ = [0, 1, 2].rsplitn_mut(1, |&x| x == 1);
54    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
55    |
56    = note: the resulting iterator will always return the entire slice followed by `None`
57
58 error: `splitn` called with `1` split
59   --> $DIR/suspicious_splitn.rs:18:13
60    |
61 LL |     let _ = "a,b".splitn(X + 1, ',');
62    |             ^^^^^^^^^^^^^^^^^^^^^^^^
63    |
64    = note: the resulting iterator will always return the entire string followed by `None`
65
66 error: `splitn` called with `0` splits
67   --> $DIR/suspicious_splitn.rs:19:13
68    |
69 LL |     let _ = "a,b".splitn(X, ',');
70    |             ^^^^^^^^^^^^^^^^^^^^
71    |
72    = note: the resulting iterator will always return `None`
73
74 error: aborting due to 9 previous errors
75