]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/starts_ends_with.stderr
Auto merge of #97191 - wesleywiser:main_thread_name, r=ChrisDenton
[rust.git] / src / tools / clippy / tests / ui / starts_ends_with.stderr
1 error: you should use the `starts_with` method
2   --> $DIR/starts_ends_with.rs:8:5
3    |
4 LL |     "".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:9:5
11    |
12 LL |     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:12:5
17    |
18 LL |     "".chars().next() == Some('/n');
19    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `"".starts_with('/n')`
20
21 error: you should use the `starts_with` method
22   --> $DIR/starts_ends_with.rs:13:5
23    |
24 LL |     Some('/n') != "".chars().next();
25    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!"".starts_with('/n')`
26
27 error: you should use the `starts_with` method
28   --> $DIR/starts_ends_with.rs:18:8
29    |
30 LL |     if s.chars().next().unwrap() == 'f' {
31    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `s.starts_with('f')`
32
33 error: you should use the `ends_with` method
34   --> $DIR/starts_ends_with.rs:22:8
35    |
36 LL |     if s.chars().next_back().unwrap() == 'o' {
37    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `s.ends_with('o')`
38    |
39    = note: `-D clippy::chars-last-cmp` implied by `-D warnings`
40
41 error: you should use the `ends_with` method
42   --> $DIR/starts_ends_with.rs:26:8
43    |
44 LL |     if s.chars().last().unwrap() == 'o' {
45    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `s.ends_with('o')`
46
47 error: you should use the `starts_with` method
48   --> $DIR/starts_ends_with.rs:30:8
49    |
50 LL |     if s.chars().next().unwrap() != 'f' {
51    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!s.starts_with('f')`
52
53 error: you should use the `ends_with` method
54   --> $DIR/starts_ends_with.rs:34:8
55    |
56 LL |     if s.chars().next_back().unwrap() != 'o' {
57    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!s.ends_with('o')`
58
59 error: you should use the `ends_with` method
60   --> $DIR/starts_ends_with.rs:38:8
61    |
62 LL |     if s.chars().last().unwrap() != '/n' {
63    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!s.ends_with('/n')`
64
65 error: you should use the `ends_with` method
66   --> $DIR/starts_ends_with.rs:46:5
67    |
68 LL |     "".chars().last() == Some(' ');
69    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `"".ends_with(' ')`
70
71 error: you should use the `ends_with` method
72   --> $DIR/starts_ends_with.rs:47:5
73    |
74 LL |     Some(' ') != "".chars().last();
75    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!"".ends_with(' ')`
76
77 error: you should use the `ends_with` method
78   --> $DIR/starts_ends_with.rs:48:5
79    |
80 LL |     "".chars().next_back() == Some(' ');
81    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `"".ends_with(' ')`
82
83 error: you should use the `ends_with` method
84   --> $DIR/starts_ends_with.rs:49:5
85    |
86 LL |     Some(' ') != "".chars().next_back();
87    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!"".ends_with(' ')`
88
89 error: you should use the `ends_with` method
90   --> $DIR/starts_ends_with.rs:52:5
91    |
92 LL |     "".chars().last() == Some('/n');
93    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `"".ends_with('/n')`
94
95 error: you should use the `ends_with` method
96   --> $DIR/starts_ends_with.rs:53:5
97    |
98 LL |     Some('/n') != "".chars().last();
99    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: like this: `!"".ends_with('/n')`
100
101 error: aborting due to 16 previous errors
102