os-rust/tests/ui/lexer/lex-bare-cr-string-literal-doc-comment.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.5 KiB
Text
Raw Normal View History

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
|
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
|
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
|
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
|
LL | /*! block doc comment with bare CR: '␍' */
2018-10-20 23:36:17 +03: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
|
LL | let _s = "foo␍bar";
| ^
|
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
|
LL | let _s = r"bar␍foo";
| ^
2018-10-20 23:36:17 +03: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
|
LL | let _s = "foo\␍bar";
| ^ unknown character escape
2018-10-20 23:36:17 +03: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