File tree Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -57,4 +57,7 @@ fn main() {
5757 // Raw string
5858 x.split('a');
5959 x.split('a');
60+ x.split('a');
61+ x.split('\'');
62+ x.split('#');
6063}
Original file line number Diff line number Diff line change @@ -57,4 +57,7 @@ fn main() {
5757 // Raw string
5858 x. split ( r"a" ) ;
5959 x. split ( r#"a"# ) ;
60+ x. split ( r###"a"### ) ;
61+ x. split ( r###"'"### ) ;
62+ x. split ( r###"#"### ) ;
6063}
Original file line number Diff line number Diff line change @@ -144,5 +144,23 @@ error: single-character string constant used as pattern
144144LL | x.split(r#"a"#);
145145 | ^^^^^^ help: try using a char instead: `'a'`
146146
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
148166
You can’t perform that action at this time.
0 commit comments