]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/single_char_pattern.stderr
Rollup merge of #78769 - est31:remove_lifetimes, r=KodrAus
[rust.git] / src / tools / clippy / tests / ui / single_char_pattern.stderr
1 error: single-character string constant used as pattern
2   --> $DIR/single_char_pattern.rs:9:13
3    |
4 LL |     x.split("x");
5    |             ^^^ help: try using a `char` instead: `'x'`
6    |
7    = note: `-D clippy::single-char-pattern` implied by `-D warnings`
8
9 error: single-character string constant used as pattern
10   --> $DIR/single_char_pattern.rs:15:13
11    |
12 LL |     x.split("ß");
13    |             ^^^ help: try using a `char` instead: `'ß'`
14
15 error: single-character string constant used as pattern
16   --> $DIR/single_char_pattern.rs:16:13
17    |
18 LL |     x.split("ℝ");
19    |             ^^^ help: try using a `char` instead: `'ℝ'`
20
21 error: single-character string constant used as pattern
22   --> $DIR/single_char_pattern.rs:17:13
23    |
24 LL |     x.split("💣");
25    |             ^^^^ help: try using a `char` instead: `'💣'`
26
27 error: single-character string constant used as pattern
28   --> $DIR/single_char_pattern.rs:20:16
29    |
30 LL |     x.contains("x");
31    |                ^^^ help: try using a `char` instead: `'x'`
32
33 error: single-character string constant used as pattern
34   --> $DIR/single_char_pattern.rs:21:19
35    |
36 LL |     x.starts_with("x");
37    |                   ^^^ help: try using a `char` instead: `'x'`
38
39 error: single-character string constant used as pattern
40   --> $DIR/single_char_pattern.rs:22:17
41    |
42 LL |     x.ends_with("x");
43    |                 ^^^ help: try using a `char` instead: `'x'`
44
45 error: single-character string constant used as pattern
46   --> $DIR/single_char_pattern.rs:23:12
47    |
48 LL |     x.find("x");
49    |            ^^^ help: try using a `char` instead: `'x'`
50
51 error: single-character string constant used as pattern
52   --> $DIR/single_char_pattern.rs:24:13
53    |
54 LL |     x.rfind("x");
55    |             ^^^ help: try using a `char` instead: `'x'`
56
57 error: single-character string constant used as pattern
58   --> $DIR/single_char_pattern.rs:25:14
59    |
60 LL |     x.rsplit("x");
61    |              ^^^ help: try using a `char` instead: `'x'`
62
63 error: single-character string constant used as pattern
64   --> $DIR/single_char_pattern.rs:26:24
65    |
66 LL |     x.split_terminator("x");
67    |                        ^^^ help: try using a `char` instead: `'x'`
68
69 error: single-character string constant used as pattern
70   --> $DIR/single_char_pattern.rs:27:25
71    |
72 LL |     x.rsplit_terminator("x");
73    |                         ^^^ help: try using a `char` instead: `'x'`
74
75 error: single-character string constant used as pattern
76   --> $DIR/single_char_pattern.rs:28:17
77    |
78 LL |     x.splitn(0, "x");
79    |                 ^^^ help: try using a `char` instead: `'x'`
80
81 error: single-character string constant used as pattern
82   --> $DIR/single_char_pattern.rs:29:18
83    |
84 LL |     x.rsplitn(0, "x");
85    |                  ^^^ help: try using a `char` instead: `'x'`
86
87 error: single-character string constant used as pattern
88   --> $DIR/single_char_pattern.rs:30:15
89    |
90 LL |     x.matches("x");
91    |               ^^^ help: try using a `char` instead: `'x'`
92
93 error: single-character string constant used as pattern
94   --> $DIR/single_char_pattern.rs:31:16
95    |
96 LL |     x.rmatches("x");
97    |                ^^^ help: try using a `char` instead: `'x'`
98
99 error: single-character string constant used as pattern
100   --> $DIR/single_char_pattern.rs:32:21
101    |
102 LL |     x.match_indices("x");
103    |                     ^^^ help: try using a `char` instead: `'x'`
104
105 error: single-character string constant used as pattern
106   --> $DIR/single_char_pattern.rs:33:22
107    |
108 LL |     x.rmatch_indices("x");
109    |                      ^^^ help: try using a `char` instead: `'x'`
110
111 error: single-character string constant used as pattern
112   --> $DIR/single_char_pattern.rs:34:26
113    |
114 LL |     x.trim_start_matches("x");
115    |                          ^^^ help: try using a `char` instead: `'x'`
116
117 error: single-character string constant used as pattern
118   --> $DIR/single_char_pattern.rs:35:24
119    |
120 LL |     x.trim_end_matches("x");
121    |                        ^^^ help: try using a `char` instead: `'x'`
122
123 error: single-character string constant used as pattern
124   --> $DIR/single_char_pattern.rs:37:13
125    |
126 LL |     x.split("/n");
127    |             ^^^^ help: try using a `char` instead: `'/n'`
128
129 error: single-character string constant used as pattern
130   --> $DIR/single_char_pattern.rs:38:13
131    |
132 LL |     x.split("'");
133    |             ^^^ help: try using a `char` instead: `'/''`
134
135 error: single-character string constant used as pattern
136   --> $DIR/single_char_pattern.rs:39:13
137    |
138 LL |     x.split("/'");
139    |             ^^^^ help: try using a `char` instead: `'/''`
140
141 error: single-character string constant used as pattern
142   --> $DIR/single_char_pattern.rs:44:31
143    |
144 LL |     x.replace(";", ",").split(","); // issue #2978
145    |                               ^^^ help: try using a `char` instead: `','`
146
147 error: single-character string constant used as pattern
148   --> $DIR/single_char_pattern.rs:45:19
149    |
150 LL |     x.starts_with("/x03"); // issue #2996
151    |                   ^^^^^^ help: try using a `char` instead: `'/x03'`
152
153 error: single-character string constant used as pattern
154   --> $DIR/single_char_pattern.rs:52:13
155    |
156 LL |     x.split(r"a");
157    |             ^^^^ help: try using a `char` instead: `'a'`
158
159 error: single-character string constant used as pattern
160   --> $DIR/single_char_pattern.rs:53:13
161    |
162 LL |     x.split(r#"a"#);
163    |             ^^^^^^ help: try using a `char` instead: `'a'`
164
165 error: single-character string constant used as pattern
166   --> $DIR/single_char_pattern.rs:54:13
167    |
168 LL |     x.split(r###"a"###);
169    |             ^^^^^^^^^^ help: try using a `char` instead: `'a'`
170
171 error: single-character string constant used as pattern
172   --> $DIR/single_char_pattern.rs:55:13
173    |
174 LL |     x.split(r###"'"###);
175    |             ^^^^^^^^^^ help: try using a `char` instead: `'/''`
176
177 error: single-character string constant used as pattern
178   --> $DIR/single_char_pattern.rs:56:13
179    |
180 LL |     x.split(r###"#"###);
181    |             ^^^^^^^^^^ help: try using a `char` instead: `'#'`
182
183 error: aborting due to 30 previous errors
184