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