rust/src/test/ui/parser/lex-bare-cr-string-literal-doc-comment.stderr

47 lines
1.4 KiB
Plaintext
Raw Normal View History

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
|
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
--> $DIR/lex-bare-cr-string-literal-doc-comment.rs:24:19
2018-10-20 15:36:17 -05:00
|
2019-03-09 06:03:44 -06:00
LL | let _s = r"bar foo";
| ^
2018-10-20 15:36:17 -05:00
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";
| ^ unknown character escape
2018-10-20 15:36:17 -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