File tree 3 files changed +25
-1
lines changed
3 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -57,4 +57,7 @@ fn main() {
57
57
// Raw string
58
58
x.split('a');
59
59
x.split('a');
60
+ x.split('a');
61
+ x.split('\'');
62
+ x.split('#');
60
63
}
Original file line number Diff line number Diff line change @@ -57,4 +57,7 @@ fn main() {
57
57
// Raw string
58
58
x. split ( r"a" ) ;
59
59
x. split ( r#"a"# ) ;
60
+ x. split ( r###"a"### ) ;
61
+ x. split ( r###"'"### ) ;
62
+ x. split ( r###"#"### ) ;
60
63
}
Original file line number Diff line number Diff line change @@ -144,5 +144,23 @@ error: single-character string constant used as pattern
144
144
LL | x.split(r#"a"#);
145
145
| ^^^^^^ help: try using a char instead: `'a'`
146
146
147
- error: aborting due to 24 previous errors
147
+ error: single-character string constant used as pattern
148
+ --> $DIR/single_char_pattern.rs:60:13
149
+ |
150
+ LL | x.split(r###"a"###);
151
+ | ^^^^^^^^^^ help: try using a char instead: `'a'`
152
+
153
+ error: single-character string constant used as pattern
154
+ --> $DIR/single_char_pattern.rs:61:13
155
+ |
156
+ LL | x.split(r###"'"###);
157
+ | ^^^^^^^^^^ help: try using a char instead: `'/''`
158
+
159
+ error: single-character string constant used as pattern
160
+ --> $DIR/single_char_pattern.rs:62:13
161
+ |
162
+ LL | x.split(r###"#"###);
163
+ | ^^^^^^^^^^ help: try using a char instead: `'#'`
164
+
165
+ error: aborting due to 27 previous errors
148
166
You can’t perform that action at this time.
0 commit comments