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