fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
1.4 KiB46 linesraw
1error: bare CR not allowed in doc-comment
2  --> $DIR/lex-bare-cr-string-literal-doc-comment.rs:5:32
3   |
4LL | /// doc comment with bare CR: '
'
5   |                                ^
6
7error: bare CR not allowed in block doc-comment
8  --> $DIR/lex-bare-cr-string-literal-doc-comment.rs:9:38
9   |
10LL | /** block doc comment with bare CR: '
' */
11   |                                      ^
12
13error: bare CR not allowed in doc-comment
14  --> $DIR/lex-bare-cr-string-literal-doc-comment.rs:14:36
15   |
16LL |     //! doc comment with bare CR: '
'
17   |                                    ^
18
19error: bare CR not allowed in block doc-comment
20  --> $DIR/lex-bare-cr-string-literal-doc-comment.rs:17:42
21   |
22LL |     /*! block doc comment with bare CR: '
' */
23   |                                          ^
24
25error: bare CR not allowed in string, use \r instead
26  --> $DIR/lex-bare-cr-string-literal-doc-comment.rs:21:18
27   |
28LL |     let _s = "foo
bar";
29   |                  ^
30
31error: bare CR not allowed in raw string
32  --> $DIR/lex-bare-cr-string-literal-doc-comment.rs:24:19
33   |
34LL |     let _s = r"bar
foo";
35   |                   ^
36
37error: unknown character escape: \r
38  --> $DIR/lex-bare-cr-string-literal-doc-comment.rs:27:19
39   |
40LL |     let _s = "foo\
bar";
41   |                   ^ unknown character escape
42   |
43   = help: this is an isolated carriage return; consider checking your editor and version control settings
44
45error: aborting due to 7 previous errors
46