@@ -121,64 +121,76 @@ LL | x.trim_end_matches("x");
121
121
| ^^^ help: try using a `char` instead: `'x'`
122
122
123
123
error: single-character string constant used as pattern
124
- --> $DIR/single_char_pattern.rs:37:13
124
+ --> $DIR/single_char_pattern.rs:36:20
125
+ |
126
+ LL | x.strip_prefix("x");
127
+ | ^^^ help: try using a `char` instead: `'x'`
128
+
129
+ error: single-character string constant used as pattern
130
+ --> $DIR/single_char_pattern.rs:37:20
131
+ |
132
+ LL | x.strip_suffix("x");
133
+ | ^^^ help: try using a `char` instead: `'x'`
134
+
135
+ error: single-character string constant used as pattern
136
+ --> $DIR/single_char_pattern.rs:39:13
125
137
|
126
138
LL | x.split("/n");
127
139
| ^^^^ help: try using a `char` instead: `'/n'`
128
140
129
141
error: single-character string constant used as pattern
130
- --> $DIR/single_char_pattern.rs:38 :13
142
+ --> $DIR/single_char_pattern.rs:40 :13
131
143
|
132
144
LL | x.split("'");
133
145
| ^^^ help: try using a `char` instead: `'/''`
134
146
135
147
error: single-character string constant used as pattern
136
- --> $DIR/single_char_pattern.rs:39 :13
148
+ --> $DIR/single_char_pattern.rs:41 :13
137
149
|
138
150
LL | x.split("/'");
139
151
| ^^^^ help: try using a `char` instead: `'/''`
140
152
141
153
error: single-character string constant used as pattern
142
- --> $DIR/single_char_pattern.rs:44 :31
154
+ --> $DIR/single_char_pattern.rs:46 :31
143
155
|
144
156
LL | x.replace(";", ",").split(","); // issue #2978
145
157
| ^^^ help: try using a `char` instead: `','`
146
158
147
159
error: single-character string constant used as pattern
148
- --> $DIR/single_char_pattern.rs:45 :19
160
+ --> $DIR/single_char_pattern.rs:47 :19
149
161
|
150
162
LL | x.starts_with("/x03"); // issue #2996
151
163
| ^^^^^^ help: try using a `char` instead: `'/x03'`
152
164
153
165
error: single-character string constant used as pattern
154
- --> $DIR/single_char_pattern.rs:52 :13
166
+ --> $DIR/single_char_pattern.rs:54 :13
155
167
|
156
168
LL | x.split(r"a");
157
169
| ^^^^ help: try using a `char` instead: `'a'`
158
170
159
171
error: single-character string constant used as pattern
160
- --> $DIR/single_char_pattern.rs:53 :13
172
+ --> $DIR/single_char_pattern.rs:55 :13
161
173
|
162
174
LL | x.split(r#"a"#);
163
175
| ^^^^^^ help: try using a `char` instead: `'a'`
164
176
165
177
error: single-character string constant used as pattern
166
- --> $DIR/single_char_pattern.rs:54 :13
178
+ --> $DIR/single_char_pattern.rs:56 :13
167
179
|
168
180
LL | x.split(r###"a"###);
169
181
| ^^^^^^^^^^ help: try using a `char` instead: `'a'`
170
182
171
183
error: single-character string constant used as pattern
172
- --> $DIR/single_char_pattern.rs:55 :13
184
+ --> $DIR/single_char_pattern.rs:57 :13
173
185
|
174
186
LL | x.split(r###"'"###);
175
187
| ^^^^^^^^^^ help: try using a `char` instead: `'/''`
176
188
177
189
error: single-character string constant used as pattern
178
- --> $DIR/single_char_pattern.rs:56 :13
190
+ --> $DIR/single_char_pattern.rs:58 :13
179
191
|
180
192
LL | x.split(r###"#"###);
181
193
| ^^^^^^^^^^ help: try using a `char` instead: `'#'`
182
194
183
- error: aborting due to 30 previous errors
195
+ error: aborting due to 32 previous errors
184
196
0 commit comments