2018-10-20 15:36:17 -05:00
|
|
|
error: bare CR not allowed in doc-comment
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lex-bare-cr-string-literal-doc-comment.rs:5:32
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
|
LL | /// doc comment with bare CR: '
'
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: bare CR not allowed in block doc-comment
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lex-bare-cr-string-literal-doc-comment.rs:9:38
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
|
LL | /** block doc comment with bare CR: '
' */
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: bare CR not allowed in doc-comment
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lex-bare-cr-string-literal-doc-comment.rs:14:36
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
|
LL | //! doc comment with bare CR: '
'
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: bare CR not allowed in block doc-comment
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lex-bare-cr-string-literal-doc-comment.rs:17:42
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
|
LL | /*! block doc comment with bare CR: '
' */
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: bare CR not allowed in string, use /r instead
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lex-bare-cr-string-literal-doc-comment.rs:21:18
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
|
LL | let _s = "foo
bar"; //~ ERROR: bare CR not allowed in string
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: bare CR not allowed in raw string, use /r instead
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lex-bare-cr-string-literal-doc-comment.rs:24:14
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
|
LL | let _s = r"bar
foo"; //~ ERROR: bare CR not allowed in raw string
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: unknown character escape: /r
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lex-bare-cr-string-literal-doc-comment.rs:27:19
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
|
LL | let _s = "foo/
bar"; //~ ERROR: unknown character escape: /r
|
|
|
|
| ^
|
|
|
|
|
|
|
|
|
help: this is an isolated carriage return; consider checking your editor and version control settings
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lex-bare-cr-string-literal-doc-comment.rs:27:19
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
|
LL | let _s = "foo/
bar"; //~ ERROR: unknown character escape: /r
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
|
|
|
|