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