@@ -182,58 +182,64 @@ LL | x.split("\'");
182
182
| ^^^^ help: try using a `char` instead: `'\''`
183
183
184
184
error: single-character string constant used as pattern
185
- --> $DIR/single_char_pattern.rs:49:31
185
+ --> $DIR/single_char_pattern.rs:46:13
186
+ |
187
+ LL | x.split("\"");
188
+ | ^^^^ help: try using a `char` instead: `'"'`
189
+
190
+ error: single-character string constant used as pattern
191
+ --> $DIR/single_char_pattern.rs:51:31
186
192
|
187
193
LL | x.replace(';', ",").split(","); // issue #2978
188
194
| ^^^ help: try using a `char` instead: `','`
189
195
190
196
error: single-character string constant used as pattern
191
- --> $DIR/single_char_pattern.rs:50 :19
197
+ --> $DIR/single_char_pattern.rs:52 :19
192
198
|
193
199
LL | x.starts_with("\x03"); // issue #2996
194
200
| ^^^^^^ help: try using a `char` instead: `'\x03'`
195
201
196
202
error: single-character string constant used as pattern
197
- --> $DIR/single_char_pattern.rs:57 :13
203
+ --> $DIR/single_char_pattern.rs:59 :13
198
204
|
199
205
LL | x.split(r"a");
200
206
| ^^^^ help: try using a `char` instead: `'a'`
201
207
202
208
error: single-character string constant used as pattern
203
- --> $DIR/single_char_pattern.rs:58 :13
209
+ --> $DIR/single_char_pattern.rs:60 :13
204
210
|
205
211
LL | x.split(r#"a"#);
206
212
| ^^^^^^ help: try using a `char` instead: `'a'`
207
213
208
214
error: single-character string constant used as pattern
209
- --> $DIR/single_char_pattern.rs:59 :13
215
+ --> $DIR/single_char_pattern.rs:61 :13
210
216
|
211
217
LL | x.split(r###"a"###);
212
218
| ^^^^^^^^^^ help: try using a `char` instead: `'a'`
213
219
214
220
error: single-character string constant used as pattern
215
- --> $DIR/single_char_pattern.rs:60 :13
221
+ --> $DIR/single_char_pattern.rs:62 :13
216
222
|
217
223
LL | x.split(r###"'"###);
218
224
| ^^^^^^^^^^ help: try using a `char` instead: `'\''`
219
225
220
226
error: single-character string constant used as pattern
221
- --> $DIR/single_char_pattern.rs:61 :13
227
+ --> $DIR/single_char_pattern.rs:63 :13
222
228
|
223
229
LL | x.split(r###"#"###);
224
230
| ^^^^^^^^^^ help: try using a `char` instead: `'#'`
225
231
226
232
error: single-character string constant used as pattern
227
- --> $DIR/single_char_pattern.rs:63 :13
233
+ --> $DIR/single_char_pattern.rs:65 :13
228
234
|
229
235
LL | x.split(r#"\"#);
230
236
| ^^^^^^ help: try using a `char` instead: `'\\'`
231
237
232
238
error: single-character string constant used as pattern
233
- --> $DIR/single_char_pattern.rs:64 :13
239
+ --> $DIR/single_char_pattern.rs:66 :13
234
240
|
235
241
LL | x.split(r"\");
236
242
| ^^^^ help: try using a `char` instead: `'\\'`
237
243
238
- error: aborting due to 39 previous errors
244
+ error: aborting due to 40 previous errors
239
245
0 commit comments