fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
4.4 KiB224 linesraw
1error: unknown start of token: \
2 --> <doctest>:1:1
3  |
41 | \__________pkt->size___________/          \_result->size_/ \__pkt->size__/
5  | ^
6
7error: unknown start of token: \
8 --> <doctest>:1:43
9  |
101 | \__________pkt->size___________/          \_result->size_/ \__pkt->size__/
11  |                                           ^
12
13error: unknown start of token: \
14 --> <doctest>:1:60
15  |
161 | \__________pkt->size___________/          \_result->size_/ \__pkt->size__/
17  |                                                            ^
18
19warning: could not parse code block as Rust code
20  --> $DIR/invalid-syntax.rs:3:5
21   |
22LL |   /// ```
23   |  _____^
24LL | | /// \__________pkt->size___________/          \_result->size_/ \__pkt->size__/
25LL | | /// ```
26   | |_______^
27   |
28help: mark blocks that do not contain Rust code as text
29   |
30LL | /// ```text
31   |     ^^^^^^^
32
33error: unknown start of token: `
34 --> <doctest>:3:30
35  |
363 |    |     ^^^^^^ did you mean `baz::foobar`?
37  |                              ^
38  |
39help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not
40  |
413 |    |     ^^^^^^ did you mean 'baz::foobar`?
42  |                              ^
43
44error: unknown start of token: `
45 --> <doctest>:3:42
46  |
473 |    |     ^^^^^^ did you mean `baz::foobar`?
48  |                                          ^
49  |
50help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not
51  |
523 |    |     ^^^^^^ did you mean `baz::foobar'?
53  |                                          ^
54
55warning: could not parse code block as Rust code
56  --> $DIR/invalid-syntax.rs:9:5
57   |
58LL |   /// ```
59   |  _____^
60LL | | ///    |
61LL | | /// LL | use foobar::Baz;
62LL | | ///    |     ^^^^^^ did you mean `baz::foobar`?
63LL | | /// ```
64   | |_______^
65   |
66help: mark blocks that do not contain Rust code as text
67   |
68LL | /// ```text
69   |     ^^^^^^^
70
71error: unknown start of token: \
72 --> <doctest>:1:1
73  |
741 | \_
75  | ^
76
77warning: could not parse code block as Rust code
78  --> $DIR/invalid-syntax.rs:21:5
79   |
80LL |   /// ```
81   |  _____^
82LL | | /// \_
83LL | | /// ```
84   | |_______^
85   |
86help: mark blocks that do not contain Rust code as text
87   |
88LL | /// ```text
89   |     ^^^^^^^
90
91error: unknown start of token: \
92 --> <doctest>:1:1
93  |
941 | \_
95  | ^
96
97warning: could not parse code block as Rust code
98  --> $DIR/invalid-syntax.rs:35:5
99   |
100LL |   /// ```rust
101   |  _____^
102LL | | /// \_
103LL | | /// ```
104   | |_______^
105
106error: unknown start of token: \
107 --> <doctest>:2:5
108  |
1092 |     \_
110  |     ^
111
112warning: could not parse code block as Rust code
113  --> $DIR/invalid-syntax.rs:45:9
114   |
115LL |   ///     code with bad syntax
116   |  _________^
117LL | | ///     \_
118   | |__________^
119
120error: unknown start of token: `
121 --> <doctest>:1:1
122  |
1231 | ```
124  | ^
125  |
126help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not
127  |
1281 | '``
129  | ^
130
131error: unknown start of token: `
132 --> <doctest>:1:2
133  |
1341 | ```
135  |  ^
136  |
137help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not
138  |
1391 | `'`
140  |  ^
141
142error: unknown start of token: `
143 --> <doctest>:1:3
144  |
1451 | ```
146  |   ^
147  |
148help: Unicode character '`' (Grave Accent) looks like ''' (Single Quote), but it is not
149  |
1501 | ``'
151  |   ^
152
153warning: could not parse code block as Rust code
154  --> $DIR/invalid-syntax.rs:60:9
155   |
156LL | ///     ```
157   |         ^^^
158
159error: unknown start of token: \
160 --> <doctest>:1:1
161  |
1621 | \_
163  | ^
164
165warning: could not parse code block as Rust code
166  --> $DIR/invalid-syntax.rs:64:5
167   |
168LL |   /// ```edition2018
169   |  _____^
170LL | | /// \_
171LL | | /// ```
172   | |_______^
173
174error: unknown start of token: \
175 --> <doctest>:1:1
176  |
1771 | \_
178  | ^
179
180warning: doc comment contains an invalid Rust code block
181  --> $DIR/invalid-syntax.rs:70:1
182   |
183LL | / #[doc = "```"]
184LL | | /// \_
185LL | | #[doc = "```"]
186   | |______________^
187   |
188   = help: mark blocks that do not contain Rust code as text: ```text
189
190warning: Rust code block is empty
191  --> $DIR/invalid-syntax.rs:76:5
192   |
193LL |   /// ```rust
194   |  _____^
195LL | | /// ```
196   | |_______^
197
198warning: Rust code block is empty
199  --> $DIR/invalid-syntax.rs:81:5
200   |
201LL |   /// ```
202   |  _____^
203LL | | ///
204LL | | ///
205LL | | /// ```
206   | |_______^
207   |
208help: mark blocks that do not contain Rust code as text
209   |
210LL | /// ```text
211   |     ^^^^^^^
212
213error: unknown start of token: \
214 --> <doctest>:1:1
215  |
2161 | \____/
217  | ^
218
219warning: could not parse code block as Rust code
220  --> $DIR/invalid-syntax.rs:92:9
221   |
222LL | ///     \____/
223   |         ^^^^^^
224