3 /// doc comment with bare CR: '
\r'
5 //~^^ ERROR: bare CR not allowed in doc-comment
7 /** block doc comment with bare CR: '
\r' */
9 //~^^ ERROR: bare CR not allowed in block doc-comment
12 //! doc comment with bare CR: '
\r'
13 //~^ ERROR: bare CR not allowed in doc-comment
15 /*! block doc comment with bare CR: '
\r' */
16 //~^ ERROR: bare CR not allowed in block doc-comment
18 // the following string literal has a bare CR in it
19 let _s = "foo
\rbar"; //~ ERROR: bare CR not allowed in string
21 // the following string literal has a bare CR in it
22 let _s = r"bar
\rfoo"; //~ ERROR: bare CR not allowed in raw string
24 // the following string literal has a bare CR in it
25 let _s = "foo\
\rbar"; //~ ERROR: unknown character escape: `\r`