1 error: bare CR not allowed in doc-comment
2 --> $DIR/lex-bare-cr-string-literal-doc-comment.rs:3:32
4 LL | /// doc comment with bare CR: '
'
7 error: bare CR not allowed in block doc-comment
8 --> $DIR/lex-bare-cr-string-literal-doc-comment.rs:7:38
10 LL | /** block doc comment with bare CR: '
' */
13 error: bare CR not allowed in doc-comment
14 --> $DIR/lex-bare-cr-string-literal-doc-comment.rs:12:36
16 LL | //! doc comment with bare CR: '
'
19 error: bare CR not allowed in block doc-comment
20 --> $DIR/lex-bare-cr-string-literal-doc-comment.rs:15:42
22 LL | /*! block doc comment with bare CR: '
' */
25 error: bare CR not allowed in string, use `\r` instead
26 --> $DIR/lex-bare-cr-string-literal-doc-comment.rs:19:18
28 LL | let _s = "foo
bar";
29 | ^ help: escape the character: `\r`
31 error: bare CR not allowed in raw string
32 --> $DIR/lex-bare-cr-string-literal-doc-comment.rs:22:19
34 LL | let _s = r"bar
foo";
37 error: unknown character escape: `\r`
38 --> $DIR/lex-bare-cr-string-literal-doc-comment.rs:25:19
40 LL | let _s = "foo\
bar";
41 | ^ unknown character escape
43 = help: this is an isolated carriage return; consider checking your editor and version control settings
45 error: aborting due to 7 previous errors