about summary refs log tree commit diff
path: root/tests/ui/str/str-escape.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/str/str-escape.rs')
-rw-r--r--tests/ui/str/str-escape.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/str/str-escape.rs b/tests/ui/str/str-escape.rs
new file mode 100644
index 00000000000..0264632fd24
--- /dev/null
+++ b/tests/ui/str/str-escape.rs
@@ -0,0 +1,11 @@
+// check-pass
+fn main() {
+    let s = "\
+
+             ";
+    //~^^^ WARNING multiple lines skipped by escaped newline
+    let s = "foo\
+             bar
+             ";
+    //~^^^ WARNING non-ASCII whitespace symbol '\u{a0}' is not skipped
+}