@@ -121,64 +121,76 @@ LL | x.trim_end_matches("x");
121121 | ^^^ help: try using a `char` instead: `'x'`
122122
123123error: 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
125137 |
126138LL | x.split("/n");
127139 | ^^^^ help: try using a `char` instead: `'/n'`
128140
129141error: single-character string constant used as pattern
130- --> $DIR/single_char_pattern.rs:38 :13
142+ --> $DIR/single_char_pattern.rs:40 :13
131143 |
132144LL | x.split("'");
133145 | ^^^ help: try using a `char` instead: `'/''`
134146
135147error: single-character string constant used as pattern
136- --> $DIR/single_char_pattern.rs:39 :13
148+ --> $DIR/single_char_pattern.rs:41 :13
137149 |
138150LL | x.split("/'");
139151 | ^^^^ help: try using a `char` instead: `'/''`
140152
141153error: single-character string constant used as pattern
142- --> $DIR/single_char_pattern.rs:44 :31
154+ --> $DIR/single_char_pattern.rs:46 :31
143155 |
144156LL | x.replace(";", ",").split(","); // issue #2978
145157 | ^^^ help: try using a `char` instead: `','`
146158
147159error: single-character string constant used as pattern
148- --> $DIR/single_char_pattern.rs:45 :19
160+ --> $DIR/single_char_pattern.rs:47 :19
149161 |
150162LL | x.starts_with("/x03"); // issue #2996
151163 | ^^^^^^ help: try using a `char` instead: `'/x03'`
152164
153165error: single-character string constant used as pattern
154- --> $DIR/single_char_pattern.rs:52 :13
166+ --> $DIR/single_char_pattern.rs:54 :13
155167 |
156168LL | x.split(r"a");
157169 | ^^^^ help: try using a `char` instead: `'a'`
158170
159171error: single-character string constant used as pattern
160- --> $DIR/single_char_pattern.rs:53 :13
172+ --> $DIR/single_char_pattern.rs:55 :13
161173 |
162174LL | x.split(r#"a"#);
163175 | ^^^^^^ help: try using a `char` instead: `'a'`
164176
165177error: single-character string constant used as pattern
166- --> $DIR/single_char_pattern.rs:54 :13
178+ --> $DIR/single_char_pattern.rs:56 :13
167179 |
168180LL | x.split(r###"a"###);
169181 | ^^^^^^^^^^ help: try using a `char` instead: `'a'`
170182
171183error: single-character string constant used as pattern
172- --> $DIR/single_char_pattern.rs:55 :13
184+ --> $DIR/single_char_pattern.rs:57 :13
173185 |
174186LL | x.split(r###"'"###);
175187 | ^^^^^^^^^^ help: try using a `char` instead: `'/''`
176188
177189error: single-character string constant used as pattern
178- --> $DIR/single_char_pattern.rs:56 :13
190+ --> $DIR/single_char_pattern.rs:58 :13
179191 |
180192LL | x.split(r###"#"###);
181193 | ^^^^^^^^^^ help: try using a `char` instead: `'#'`
182194
183- error: aborting due to 30 previous errors
195+ error: aborting due to 32 previous errors
184196
0 commit comments