We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2dff700 commit efe069cCopy full SHA for efe069c
src/test/ui/str/str-escape.rs
@@ -0,0 +1,11 @@
1
+// check-pass
2
+fn main() {
3
+ let s = "\
4
+
5
+ ";
6
+ //~^^^ WARNING multiple lines skipped by escaped newline
7
+ let s = "foo\
8
+ bar
9
10
+ //~^^^ WARNING non-ASCII whitespace symbol '\u{a0}' is not skipped
11
+}
src/test/ui/str/str-escape.stderr
@@ -0,0 +1,21 @@
+warning: multiple lines skipped by escaped newline
+ --> $DIR/str-escape.rs:3:14
+ |
+LL | let s = "\
+ | ______________^
+LL | |
+LL | | ";
+ | |_____________^ skipping everything up to and including this point
+warning: non-ASCII whitespace symbol '\u{a0}' is not skipped
+ --> $DIR/str-escape.rs:7:17
12
13
+LL | let s = "foo\
14
+ | _________________^
15
+LL | | bar
16
+ | | ^ non-ASCII whitespace symbol '\u{a0}' is not skipped
17
+ | |___|
18
19
20
+warning: 2 warnings emitted
21
0 commit comments