]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/invalid-syntax.stderr
Auto merge of #68066 - CAD97:stabilize-manuallydrop-take, r=Amanieu,Mark-Simulacrum
[rust.git] / src / test / rustdoc-ui / invalid-syntax.stderr
1 warning: could not parse code block as Rust code
2   --> $DIR/invalid-syntax.rs:3:5
3    |
4 LL |   /// ```
5    |  _____^
6 LL | | /// \__________pkt->size___________/          \_result->size_/ \__pkt->size__/
7 LL | | /// ```
8    | |_______^
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: \
13 help: mark blocks that do not contain Rust code as text
14    |
15 LL | /// ```text
16    |     ^^^^^^^
17
18 warning: could not parse code block as Rust code
19   --> $DIR/invalid-syntax.rs:9:5
20    |
21 LL |   /// ```
22    |  _____^
23 LL | | ///    |
24 LL | | /// LL | use foobar::Baz;
25 LL | | ///    |     ^^^^^^ did you mean `baz::foobar`?
26 LL | | /// ```
27    | |_______^
28    |
29    = note: error from rustc: unknown start of token: `
30    = note: error from rustc: unknown start of token: `
31 help: mark blocks that do not contain Rust code as text
32    |
33 LL | /// ```text
34    |     ^^^^^^^
35
36 warning: could not parse code block as Rust code
37   --> $DIR/invalid-syntax.rs:21:5
38    |
39 LL |   /// ```
40    |  _____^
41 LL | | /// \_
42 LL | | /// ```
43    | |_______^
44    |
45    = note: error from rustc: unknown start of token: \
46 help: mark blocks that do not contain Rust code as text
47    |
48 LL | /// ```text
49    |     ^^^^^^^
50
51 warning: could not parse code block as Rust code
52   --> $DIR/invalid-syntax.rs:35:5
53    |
54 LL |   /// ```rust
55    |  _____^
56 LL | | /// \_
57 LL | | /// ```
58    | |_______^
59    |
60    = note: error from rustc: unknown start of token: \
61
62 warning: could not parse code block as Rust code
63   --> $DIR/invalid-syntax.rs:45:9
64    |
65 LL |   ///     code with bad syntax
66    |  _________^
67 LL | | ///     \_
68    | |__________^
69    |
70    = note: error from rustc: unknown start of token: \
71
72 warning: could not parse code block as Rust code
73   --> $DIR/invalid-syntax.rs:60:9
74    |
75 LL | ///     ```
76    |         ^^^
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: `
81
82 warning: could not parse code block as Rust code
83   --> $DIR/invalid-syntax.rs:64:5
84    |
85 LL |   /// ```edition2018
86    |  _____^
87 LL | | /// \_
88 LL | | /// ```
89    | |_______^
90    |
91    = note: error from rustc: unknown start of token: \
92
93 warning: doc comment contains an invalid Rust code block
94   --> $DIR/invalid-syntax.rs:70:1
95    |
96 LL | / #[doc = "```"]
97 LL | | /// \_
98 LL | | #[doc = "```"]
99    | |______________^
100    |
101    = help: mark blocks that do not contain Rust code as text: ```text
102    = note: error from rustc: unknown start of token: \
103
104 warning: Rust code block is empty
105   --> $DIR/invalid-syntax.rs:76:5
106    |
107 LL |   /// ```rust
108    |  _____^
109 LL | | /// ```
110    | |_______^
111
112 warning: Rust code block is empty
113   --> $DIR/invalid-syntax.rs:81:5
114    |
115 LL |   /// ```
116    |  _____^
117 LL | | ///
118 LL | | ///
119 LL | | /// ```
120    | |_______^
121    |
122 help: mark blocks that do not contain Rust code as text
123    |
124 LL | /// ```text
125    |     ^^^^^^^
126
127 warning: could not parse code block as Rust code
128   --> $DIR/invalid-syntax.rs:92:9
129    |
130 LL | ///     \____/
131    |         ^^^^^^
132    |
133    = note: error from rustc: unknown start of token: \
134
135 warning: could not parse code block as Rust code
136   --> $DIR/invalid-syntax.rs:97:5
137    |
138 LL |   /// ```
139    |  _____^
140 LL | | /// "invalid
141 LL | | /// ```
142    | |_______^
143    |
144    = note: error from rustc: unterminated double quote string
145 help: mark blocks that do not contain Rust code as text
146    |
147 LL | /// ```text
148    |     ^^^^^^^
149