]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/lex-bare-cr-string-literal-doc-comment.stderr
comments
[rust.git] / src / test / ui / parser / lex-bare-cr-string-literal-doc-comment.stderr
1 error: bare CR not allowed in doc-comment
2   --> $DIR/lex-bare-cr-string-literal-doc-comment.rs:5:32
3    |
4 LL | /// doc comment with bare CR: '\r'
5    |                                ^
6
7 error: bare CR not allowed in block doc-comment
8   --> $DIR/lex-bare-cr-string-literal-doc-comment.rs:9:38
9    |
10 LL | /** block doc comment with bare CR: '\r' */
11    |                                      ^
12
13 error: bare CR not allowed in doc-comment
14   --> $DIR/lex-bare-cr-string-literal-doc-comment.rs:14:36
15    |
16 LL |     //! doc comment with bare CR: '\r'
17    |                                    ^
18
19 error: bare CR not allowed in block doc-comment
20   --> $DIR/lex-bare-cr-string-literal-doc-comment.rs:17:42
21    |
22 LL |     /*! block doc comment with bare CR: '\r' */
23    |                                          ^
24
25 error: bare CR not allowed in string, use \r instead
26   --> $DIR/lex-bare-cr-string-literal-doc-comment.rs:21:18
27    |
28 LL |     let _s = "foo\rbar";
29    |                  ^
30
31 error: bare CR not allowed in raw string, use \r instead
32   --> $DIR/lex-bare-cr-string-literal-doc-comment.rs:24:14
33    |
34 LL |     let _s = r"bar\rfoo";
35    |              ^^^^^
36
37 error: unknown character escape: \r
38   --> $DIR/lex-bare-cr-string-literal-doc-comment.rs:27:19
39    |
40 LL |     let _s = "foo\\rbar";
41    |                   ^ unknown character escape
42    |
43    = help: this is an isolated carriage return; consider checking your editor and version control settings
44
45 error: aborting due to 7 previous errors
46