1 // compile-flags: -Z continue-parse-after-error
5 /// doc comment with bare CR: '
\r'
7 //~^^ ERROR: bare CR not allowed in doc-comment
9 /** block doc comment with bare CR: '
\r' */
11 //~^^ ERROR: bare CR not allowed in block doc-comment
14 //! doc comment with bare CR: '
\r'
15 //~^ ERROR: bare CR not allowed in doc-comment
17 /*! block doc comment with bare CR: '
\r' */
18 //~^ ERROR: bare CR not allowed in block doc-comment
20 // the following string literal has a bare CR in it
21 let _s = "foo
\rbar"; //~ ERROR: bare CR not allowed in string
23 // the following string literal has a bare CR in it
24 let _s = r"bar
\rfoo"; //~ ERROR: bare CR not allowed in raw string
26 // the following string literal has a bare CR in it
27 let _s = "foo\
\rbar"; //~ ERROR: unknown character escape: \r