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