2018-10-20 23:36:17 +03:00
|
|
|
error: bare CR not allowed in doc-comment
|
2020-01-08 21:25:42 +03:00
|
|
|
--> $DIR/lex-bare-cr-string-literal-doc-comment.rs:3:32
|
2018-10-20 23:36:17 +03:00
|
|
|
|
|
2024-07-09 16:46:09 +00:00
|
|
|
LL | /// doc comment with bare CR: '␍'
|
2018-10-20 23:36:17 +03:00
|
|
|
| ^
|
|
|
|
|
|
|
|
error: bare CR not allowed in block doc-comment
|
2020-01-08 21:25:42 +03:00
|
|
|
--> $DIR/lex-bare-cr-string-literal-doc-comment.rs:7:38
|
2018-10-20 23:36:17 +03:00
|
|
|
|
|
2024-07-09 16:46:09 +00:00
|
|
|
LL | /** block doc comment with bare CR: '␍' */
|
2018-10-20 23:36:17 +03:00
|
|
|
| ^
|
|
|
|
|
|
|
|
error: bare CR not allowed in doc-comment
|
2020-01-08 21:25:42 +03:00
|
|
|
--> $DIR/lex-bare-cr-string-literal-doc-comment.rs:12:36
|
2018-10-20 23:36:17 +03:00
|
|
|
|
|
2024-07-09 16:46:09 +00:00
|
|
|
LL | //! doc comment with bare CR: '␍'
|
2018-10-20 23:36:17 +03:00
|
|
|
| ^
|
|
|
|
|
|
|
|
error: bare CR not allowed in block doc-comment
|
2020-01-08 21:25:42 +03:00
|
|
|
--> $DIR/lex-bare-cr-string-literal-doc-comment.rs:15:42
|
2018-10-20 23:36:17 +03:00
|
|
|
|
|
2024-07-09 16:46:09 +00:00
|
|
|
LL | /*! block doc comment with bare CR: '␍' */
|
2018-10-20 23:36:17 +03:00
|
|
|
| ^
|
|
|
|
|
2021-01-23 12:48:31 -08:00
|
|
|
error: bare CR not allowed in string, use `\r` instead
|
2020-01-08 21:25:42 +03:00
|
|
|
--> $DIR/lex-bare-cr-string-literal-doc-comment.rs:19:18
|
2018-10-20 23:36:17 +03:00
|
|
|
|
|
2024-07-09 16:46:09 +00:00
|
|
|
LL | let _s = "foo␍bar";
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
help: escape the character
|
|
|
|
|
|
|
|
|
LL | let _s = "foo\rbar";
|
|
|
|
| ++
|
2018-10-20 23:36:17 +03:00
|
|
|
|
2019-06-10 17:32:15 +02:00
|
|
|
error: bare CR not allowed in raw string
|
2020-01-08 21:25:42 +03:00
|
|
|
--> $DIR/lex-bare-cr-string-literal-doc-comment.rs:22:19
|
2018-10-20 23:36:17 +03:00
|
|
|
|
|
2024-07-09 16:46:09 +00:00
|
|
|
LL | let _s = r"bar␍foo";
|
2019-05-13 19:52:55 +02:00
|
|
|
| ^
|
2018-10-20 23:36:17 +03:00
|
|
|
|
2021-01-23 12:48:31 -08:00
|
|
|
error: unknown character escape: `\r`
|
2020-01-08 21:25:42 +03:00
|
|
|
--> $DIR/lex-bare-cr-string-literal-doc-comment.rs:25:19
|
2018-10-20 23:36:17 +03:00
|
|
|
|
|
2024-07-09 16:46:09 +00:00
|
|
|
LL | let _s = "foo\␍bar";
|
2019-03-20 11:45:25 -07:00
|
|
|
| ^ unknown character escape
|
2018-10-20 23:36:17 +03:00
|
|
|
|
|
2019-03-20 11:45:25 -07:00
|
|
|
= help: this is an isolated carriage return; consider checking your editor and version control settings
|
2018-10-20 23:36:17 +03:00
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
|
|
|
|