]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/single_char_pattern.rs
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / single_char_pattern.rs
index dc2f9fe4959a1aa7470be4f2f63771cfd149cd6e..32afe339cd81cc0cf07d87dc231f4368be748392 100644 (file)
@@ -41,6 +41,8 @@ fn main() {
     x.trim_end_matches("x");
     // Make sure we escape characters correctly.
     x.split("\n");
+    x.split("'");
+    x.split("\'");
 
     let h = HashSet::<String>::new();
     h.contains("X"); // should not warn
@@ -51,4 +53,11 @@ fn main() {
     // Issue #3204
     const S: &str = "#";
     x.find(S);
+
+    // Raw string
+    x.split(r"a");
+    x.split(r#"a"#);
+    x.split(r###"a"###);
+    x.split(r###"'"###);
+    x.split(r###"#"###);
 }