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
+
1
19
warning: could not parse code block as Rust code
2
20
--> $DIR/invalid-syntax.rs:3:5
3
21
|
@@ -6,13 +24,31 @@ LL | /// ```
6
24
LL | | /// \__________pkt->size___________/ \_result->size_/ \__pkt->size__/
7
25
LL | | /// ```
8
26
| |_______^
9
- |
10
- = note: error from rustc: unknown start of token: \
11
27
help: mark blocks that do not contain Rust code as text
12
28
|
13
29
LL | /// ```text
14
30
| ^^^^^^^
15
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
+
16
52
warning: could not parse code block as Rust code
17
53
--> $DIR/invalid-syntax.rs:8:5
18
54
|
@@ -23,13 +59,17 @@ LL | | /// LL | use foobar::Baz;
23
59
LL | | /// | ^^^^^^ did you mean `baz::foobar`?
24
60
LL | | /// ```
25
61
| |_______^
26
- |
27
- = note: error from rustc: unknown start of token: `
28
62
help: mark blocks that do not contain Rust code as text
29
63
|
30
64
LL | /// ```text
31
65
| ^^^^^^^
32
66
67
+ error: unknown start of token: \
68
+ --> <doctest>:1:1
69
+ |
70
+ 1 | \_
71
+ | ^
72
+
33
73
warning: could not parse code block as Rust code
34
74
--> $DIR/invalid-syntax.rs:19:5
35
75
|
@@ -38,13 +78,17 @@ LL | /// ```
38
78
LL | | /// \_
39
79
LL | | /// ```
40
80
| |_______^
41
- |
42
- = note: error from rustc: unknown start of token: \
43
81
help: mark blocks that do not contain Rust code as text
44
82
|
45
83
LL | /// ```text
46
84
| ^^^^^^^
47
85
86
+ error: unknown start of token: \
87
+ --> <doctest>:1:1
88
+ |
89
+ 1 | \_
90
+ | ^
91
+
48
92
warning: could not parse code block as Rust code
49
93
--> $DIR/invalid-syntax.rs:32:5
50
94
|
@@ -53,8 +97,12 @@ LL | /// ```rust
53
97
LL | | /// \_
54
98
LL | | /// ```
55
99
| |_______^
56
- |
57
- = note: error from rustc: unknown start of token: \
100
+
101
+ error: unknown start of token: \
102
+ --> <doctest>:2:5
103
+ |
104
+ 2 | \_
105
+ | ^
58
106
59
107
warning: could not parse code block as Rust code
60
108
--> $DIR/invalid-syntax.rs:41:9
@@ -63,16 +111,48 @@ LL | /// code with bad syntax
63
111
| _________^
64
112
LL | | /// \_
65
113
| |__________^
66
- |
67
- = note: error from rustc: unknown start of token: \
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
+ | ^
68
144
69
145
warning: could not parse code block as Rust code
70
146
--> $DIR/invalid-syntax.rs:55:9
71
147
|
72
148
LL | /// ```
73
149
| ^^^
74
- |
75
- = note: error from rustc: unknown start of token: `
150
+
151
+ error: unknown start of token: \
152
+ --> <doctest>:1:1
153
+ |
154
+ 1 | \_
155
+ | ^
76
156
77
157
warning: could not parse code block as Rust code
78
158
--> $DIR/invalid-syntax.rs:58:5
@@ -82,8 +162,12 @@ LL | /// ```edition2018
82
162
LL | | /// \_
83
163
LL | | /// ```
84
164
| |_______^
85
- |
86
- = note: error from rustc: unknown start of token: \
165
+
166
+ error: unknown start of token: \
167
+ --> <doctest>:1:1
168
+ |
169
+ 1 | \_
170
+ | ^
87
171
88
172
warning: doc comment contains an invalid Rust code block
89
173
--> $DIR/invalid-syntax.rs:63:1
@@ -95,3 +179,59 @@ LL | | #[doc = "```"]
95
179
|
96
180
= help: mark blocks that do not contain Rust code as text: ```text
97
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
+
0 commit comments