]> git.lizzy.rs Git - rust.git/blob - tests/ui/starts_ends_with.stderr
Adapt the *.stderr files of the ui-tests to the tool_lints
[rust.git] / tests / ui / starts_ends_with.stderr
1 error: you should use the `starts_with` method
2  --> $DIR/starts_ends_with.rs:9:5
3   |
4 9 |     "".chars().next() == Some(' ');
5   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `"".starts_with(' ')`
6   |
7   = note: `-D clippy::chars-next-cmp` implied by `-D warnings`
8
9 error: you should use the `starts_with` method
10   --> $DIR/starts_ends_with.rs:10:5
11    |
12 10 |     Some(' ') != "".chars().next();
13    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!"".starts_with(' ')`
14
15 error: you should use the `starts_with` method
16   --> $DIR/starts_ends_with.rs:15:8
17    |
18 15 |     if s.chars().next().unwrap() == 'f' { // s.starts_with('f')
19    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `s.starts_with('f')`
20
21 error: you should use the `ends_with` method
22   --> $DIR/starts_ends_with.rs:18:8
23    |
24 18 |     if s.chars().next_back().unwrap() == 'o' { // s.ends_with('o')
25    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `s.ends_with('o')`
26    |
27    = note: `-D clippy::chars-last-cmp` implied by `-D warnings`
28
29 error: you should use the `ends_with` method
30   --> $DIR/starts_ends_with.rs:21:8
31    |
32 21 |     if s.chars().last().unwrap() == 'o' { // s.ends_with('o')
33    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `s.ends_with('o')`
34
35 error: you should use the `starts_with` method
36   --> $DIR/starts_ends_with.rs:24:8
37    |
38 24 |     if s.chars().next().unwrap() != 'f' { // !s.starts_with('f')
39    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!s.starts_with('f')`
40
41 error: you should use the `ends_with` method
42   --> $DIR/starts_ends_with.rs:27:8
43    |
44 27 |     if s.chars().next_back().unwrap() != 'o' { // !s.ends_with('o')
45    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!s.ends_with('o')`
46
47 error: you should use the `ends_with` method
48   --> $DIR/starts_ends_with.rs:30:8
49    |
50 30 |     if s.chars().last().unwrap() != 'o' { // !s.ends_with('o')
51    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!s.ends_with('o')`
52
53 error: you should use the `ends_with` method
54   --> $DIR/starts_ends_with.rs:37:5
55    |
56 37 |     "".chars().last() == Some(' ');
57    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `"".ends_with(' ')`
58
59 error: you should use the `ends_with` method
60   --> $DIR/starts_ends_with.rs:38:5
61    |
62 38 |     Some(' ') != "".chars().last();
63    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!"".ends_with(' ')`
64
65 error: you should use the `ends_with` method
66   --> $DIR/starts_ends_with.rs:39:5
67    |
68 39 |     "".chars().next_back() == Some(' ');
69    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `"".ends_with(' ')`
70
71 error: you should use the `ends_with` method
72   --> $DIR/starts_ends_with.rs:40:5
73    |
74 40 |     Some(' ') != "".chars().next_back();
75    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!"".ends_with(' ')`
76
77 error: aborting due to 12 previous errors
78