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-
191warning: could not parse code block as Rust code
202 --> $DIR/invalid-syntax.rs:3:5
213 |
@@ -25,33 +7,14 @@ LL | | /// \__________pkt->size___________/ \_result->size_/ \__pkt->si
257LL | | /// ```
268 | |_______^
279 |
10+ = note: error from rustc: unknown start of token: \
11+ = note: error from rustc: unknown start of token: \
12+ = note: error from rustc: unknown start of token: \
2813help: mark blocks that do not contain Rust code as text
2914 |
3015LL | /// ```text
3116 | ^^^^^^^
3217
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-
5518warning: could not parse code block as Rust code
5619 --> $DIR/invalid-syntax.rs:9:5
5720 |
@@ -63,17 +26,13 @@ LL | | /// | ^^^^^^ did you mean `baz::foobar`?
6326LL | | /// ```
6427 | |_______^
6528 |
29+ = note: error from rustc: unknown start of token: `
30+ = note: error from rustc: unknown start of token: `
6631help: mark blocks that do not contain Rust code as text
6732 |
6833LL | /// ```text
6934 | ^^^^^^^
7035
71- error: unknown start of token: \
72- --> <doctest>:1:1
73- |
74- 1 | \_
75- | ^
76-
7736warning: could not parse code block as Rust code
7837 --> $DIR/invalid-syntax.rs:21:5
7938 |
@@ -83,17 +42,12 @@ LL | | /// \_
8342LL | | /// ```
8443 | |_______^
8544 |
45+ = note: error from rustc: unknown start of token: \
8646help: mark blocks that do not contain Rust code as text
8747 |
8848LL | /// ```text
8949 | ^^^^^^^
9050
91- error: unknown start of token: \
92- --> <doctest>:1:1
93- |
94- 1 | \_
95- | ^
96-
9751warning: could not parse code block as Rust code
9852 --> $DIR/invalid-syntax.rs:35:5
9953 |
@@ -102,12 +56,8 @@ LL | /// ```rust
10256LL | | /// \_
10357LL | | /// ```
10458 | |_______^
105-
106- error: unknown start of token: \
107- --> <doctest>:2:5
108- |
109- 2 | \_
110- | ^
59+ |
60+ = note: error from rustc: unknown start of token: \
11161
11262warning: could not parse code block as Rust code
11363 --> $DIR/invalid-syntax.rs:45:9
@@ -116,51 +66,18 @@ LL | /// code with bad syntax
11666 | _________^
11767LL | | /// \_
11868 | |__________^
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- | ^
69+ |
70+ = note: error from rustc: unknown start of token: \
15271
15372warning: could not parse code block as Rust code
15473 --> $DIR/invalid-syntax.rs:60:9
15574 |
15675LL | /// ```
15776 | ^^^
158-
159- error: unknown start of token: \
160- --> <doctest>:1:1
161- |
162- 1 | \_
163- | ^
77+ |
78+ = note: error from rustc: unknown start of token: `
79+ = note: error from rustc: unknown start of token: `
80+ = note: error from rustc: unknown start of token: `
16481
16582warning: could not parse code block as Rust code
16683 --> $DIR/invalid-syntax.rs:64:5
@@ -170,12 +87,8 @@ LL | /// ```edition2018
17087LL | | /// \_
17188LL | | /// ```
17289 | |_______^
173-
174- error: unknown start of token: \
175- --> <doctest>:1:1
176- |
177- 1 | \_
178- | ^
90+ |
91+ = note: error from rustc: unknown start of token: \
17992
18093warning: doc comment contains an invalid Rust code block
18194 --> $DIR/invalid-syntax.rs:70:1
@@ -186,6 +99,7 @@ LL | | #[doc = "```"]
18699 | |______________^
187100 |
188101 = help: mark blocks that do not contain Rust code as text: ```text
102+ = note: error from rustc: unknown start of token: \
189103
190104warning: Rust code block is empty
191105 --> $DIR/invalid-syntax.rs:76:5
@@ -210,15 +124,11 @@ help: mark blocks that do not contain Rust code as text
210124LL | /// ```text
211125 | ^^^^^^^
212126
213- error: unknown start of token: \
214- --> <doctest>:1:1
215- |
216- 1 | \____/
217- | ^
218-
219127warning: could not parse code block as Rust code
220128 --> $DIR/invalid-syntax.rs:92:9
221129 |
222130LL | /// \____/
223131 | ^^^^^^
132+ |
133+ = note: error from rustc: unknown start of token: \
224134
0 commit comments