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+
119warning: could not parse code block as Rust code
220 --> $DIR/invalid-syntax.rs:3:5
321 |
@@ -6,13 +24,31 @@ LL | /// ```
624LL | | /// \__________pkt->size___________/ \_result->size_/ \__pkt->size__/
725LL | | /// ```
826 | |_______^
9- |
10- = note: error from rustc: unknown start of token: \
1127help: mark blocks that do not contain Rust code as text
1228 |
1329LL | /// ```text
1430 | ^^^^^^^
1531
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+
1652warning: could not parse code block as Rust code
1753 --> $DIR/invalid-syntax.rs:8:5
1854 |
@@ -23,13 +59,17 @@ LL | | /// LL | use foobar::Baz;
2359LL | | /// | ^^^^^^ did you mean `baz::foobar`?
2460LL | | /// ```
2561 | |_______^
26- |
27- = note: error from rustc: unknown start of token: `
2862help: mark blocks that do not contain Rust code as text
2963 |
3064LL | /// ```text
3165 | ^^^^^^^
3266
67+ error: unknown start of token: \
68+ --> <doctest>:1:1
69+ |
70+ 1 | \_
71+ | ^
72+
3373warning: could not parse code block as Rust code
3474 --> $DIR/invalid-syntax.rs:19:5
3575 |
@@ -38,13 +78,17 @@ LL | /// ```
3878LL | | /// \_
3979LL | | /// ```
4080 | |_______^
41- |
42- = note: error from rustc: unknown start of token: \
4381help: mark blocks that do not contain Rust code as text
4482 |
4583LL | /// ```text
4684 | ^^^^^^^
4785
86+ error: unknown start of token: \
87+ --> <doctest>:1:1
88+ |
89+ 1 | \_
90+ | ^
91+
4892warning: could not parse code block as Rust code
4993 --> $DIR/invalid-syntax.rs:32:5
5094 |
@@ -53,8 +97,12 @@ LL | /// ```rust
5397LL | | /// \_
5498LL | | /// ```
5599 | |_______^
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+ | ^
58106
59107warning: could not parse code block as Rust code
60108 --> $DIR/invalid-syntax.rs:41:9
@@ -63,16 +111,48 @@ LL | /// code with bad syntax
63111 | _________^
64112LL | | /// \_
65113 | |__________^
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+ | ^
68144
69145warning: could not parse code block as Rust code
70146 --> $DIR/invalid-syntax.rs:55:9
71147 |
72148LL | /// ```
73149 | ^^^
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+ | ^
76156
77157warning: could not parse code block as Rust code
78158 --> $DIR/invalid-syntax.rs:58:5
@@ -82,8 +162,12 @@ LL | /// ```edition2018
82162LL | | /// \_
83163LL | | /// ```
84164 | |_______^
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+ | ^
87171
88172warning: doc comment contains an invalid Rust code block
89173 --> $DIR/invalid-syntax.rs:63:1
@@ -95,3 +179,59 @@ LL | | #[doc = "```"]
95179 |
96180 = help: mark blocks that do not contain Rust code as text: ```text
97181
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