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
1
warning: could not parse code block as Rust code
20
2
--> $DIR/invalid-syntax.rs:3:5
21
3
|
@@ -25,33 +7,14 @@ LL | | /// \__________pkt->size___________/ \_result->size_/ \__pkt->si
25
7
LL | | /// ```
26
8
| |_______^
27
9
|
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: \
28
13
help: mark blocks that do not contain Rust code as text
29
14
|
30
15
LL | /// ```text
31
16
| ^^^^^^^
32
17
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
18
warning: could not parse code block as Rust code
56
19
--> $DIR/invalid-syntax.rs:9:5
57
20
|
@@ -63,17 +26,13 @@ LL | | /// | ^^^^^^ did you mean `baz::foobar`?
63
26
LL | | /// ```
64
27
| |_______^
65
28
|
29
+ = note: error from rustc: unknown start of token: `
30
+ = note: error from rustc: unknown start of token: `
66
31
help: mark blocks that do not contain Rust code as text
67
32
|
68
33
LL | /// ```text
69
34
| ^^^^^^^
70
35
71
- error: unknown start of token: \
72
- --> <doctest>:1:1
73
- |
74
- 1 | \_
75
- | ^
76
-
77
36
warning: could not parse code block as Rust code
78
37
--> $DIR/invalid-syntax.rs:21:5
79
38
|
@@ -83,17 +42,12 @@ LL | | /// \_
83
42
LL | | /// ```
84
43
| |_______^
85
44
|
45
+ = note: error from rustc: unknown start of token: \
86
46
help: mark blocks that do not contain Rust code as text
87
47
|
88
48
LL | /// ```text
89
49
| ^^^^^^^
90
50
91
- error: unknown start of token: \
92
- --> <doctest>:1:1
93
- |
94
- 1 | \_
95
- | ^
96
-
97
51
warning: could not parse code block as Rust code
98
52
--> $DIR/invalid-syntax.rs:35:5
99
53
|
@@ -102,12 +56,8 @@ LL | /// ```rust
102
56
LL | | /// \_
103
57
LL | | /// ```
104
58
| |_______^
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: \
111
61
112
62
warning: could not parse code block as Rust code
113
63
--> $DIR/invalid-syntax.rs:45:9
@@ -116,51 +66,18 @@ LL | /// code with bad syntax
116
66
| _________^
117
67
LL | | /// \_
118
68
| |__________^
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: \
152
71
153
72
warning: could not parse code block as Rust code
154
73
--> $DIR/invalid-syntax.rs:60:9
155
74
|
156
75
LL | /// ```
157
76
| ^^^
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: `
164
81
165
82
warning: could not parse code block as Rust code
166
83
--> $DIR/invalid-syntax.rs:64:5
@@ -170,12 +87,8 @@ LL | /// ```edition2018
170
87
LL | | /// \_
171
88
LL | | /// ```
172
89
| |_______^
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: \
179
92
180
93
warning: doc comment contains an invalid Rust code block
181
94
--> $DIR/invalid-syntax.rs:70:1
@@ -186,6 +99,7 @@ LL | | #[doc = "```"]
186
99
| |______________^
187
100
|
188
101
= help: mark blocks that do not contain Rust code as text: ```text
102
+ = note: error from rustc: unknown start of token: \
189
103
190
104
warning: Rust code block is empty
191
105
--> $DIR/invalid-syntax.rs:76:5
@@ -210,15 +124,11 @@ help: mark blocks that do not contain Rust code as text
210
124
LL | /// ```text
211
125
| ^^^^^^^
212
126
213
- error: unknown start of token: \
214
- --> <doctest>:1:1
215
- |
216
- 1 | \____/
217
- | ^
218
-
219
127
warning: could not parse code block as Rust code
220
128
--> $DIR/invalid-syntax.rs:92:9
221
129
|
222
130
LL | /// \____/
223
131
| ^^^^^^
132
+ |
133
+ = note: error from rustc: unknown start of token: \
224
134
0 commit comments