]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-ui/invalid-syntax.stderr
Rollup merge of #106570 - Xaeroxe:div-duration-tests, r=JohnTitor
[rust.git] / tests / 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    = note: `#[warn(rustdoc::invalid_rust_codeblocks)]` on by default
14 help: mark blocks that do not contain Rust code as text
15    |
16 LL | /// ```text
17    |        ++++
18
19 warning: could not parse code block as Rust code
20   --> $DIR/invalid-syntax.rs:9:5
21    |
22 LL |   /// ```
23    |  _____^
24 LL | | ///    |
25 LL | | /// LL | use foobar::Baz;
26 LL | | ///    |     ^^^^^^ did you mean `baz::foobar`?
27 LL | | /// ```
28    | |_______^
29    |
30    = note: error from rustc: unknown start of token: `
31    = note: error from rustc: unknown start of token: `
32 help: mark blocks that do not contain Rust code as text
33    |
34 LL | /// ```text
35    |        ++++
36
37 warning: could not parse code block as Rust code
38   --> $DIR/invalid-syntax.rs:21:5
39    |
40 LL |   /// ```
41    |  _____^
42 LL | | /// \_
43 LL | | /// ```
44    | |_______^
45    |
46    = note: error from rustc: unknown start of token: \
47 help: mark blocks that do not contain Rust code as text
48    |
49 LL | /// ```text
50    |        ++++
51
52 warning: could not parse code block as Rust code
53   --> $DIR/invalid-syntax.rs:35:5
54    |
55 LL |   /// ```rust
56    |  _____^
57 LL | | /// \_
58 LL | | /// ```
59    | |_______^
60    |
61    = note: error from rustc: unknown start of token: \
62
63 warning: could not parse code block as Rust code
64   --> $DIR/invalid-syntax.rs:45:9
65    |
66 LL |   ///     code with bad syntax
67    |  _________^
68 LL | | ///     \_
69    | |__________^
70    |
71    = note: error from rustc: unknown start of token: \
72
73 warning: could not parse code block as Rust code
74   --> $DIR/invalid-syntax.rs:60:9
75    |
76 LL | ///     ```
77    |         ^^^
78    |
79    = note: error from rustc: unknown start of token: `
80    = note: error from rustc: unknown start of token: `
81    = note: error from rustc: unknown start of token: `
82
83 warning: could not parse code block as Rust code
84   --> $DIR/invalid-syntax.rs:64:5
85    |
86 LL |   /// ```edition2018
87    |  _____^
88 LL | | /// \_
89 LL | | /// ```
90    | |_______^
91    |
92    = note: error from rustc: unknown start of token: \
93
94 warning: could not parse code block as Rust code
95   --> $DIR/invalid-syntax.rs:70:1
96    |
97 LL | / #[doc = "```"]
98 LL | | /// \_
99 LL | | #[doc = "```"]
100    | |______________^
101    |
102    = help: mark blocks that do not contain Rust code as text: ```text
103    = note: error from rustc: unknown start of token: \
104
105 warning: Rust code block is empty
106   --> $DIR/invalid-syntax.rs:76:5
107    |
108 LL |   /// ```rust
109    |  _____^
110 LL | | /// ```
111    | |_______^
112
113 warning: Rust code block is empty
114   --> $DIR/invalid-syntax.rs:81:5
115    |
116 LL |   /// ```
117    |  _____^
118 LL | | ///
119 LL | | ///
120 LL | | /// ```
121    | |_______^
122    |
123 help: mark blocks that do not contain Rust code as text
124    |
125 LL | /// ```text
126    |        ++++
127
128 warning: could not parse code block as Rust code
129   --> $DIR/invalid-syntax.rs:92:9
130    |
131 LL |   ///     \____/
132    |  _________^
133 LL | | ///
134    | |_
135    |
136    = note: error from rustc: unknown start of token: \
137
138 warning: could not parse code block as Rust code
139   --> $DIR/invalid-syntax.rs:97:5
140    |
141 LL |   /// ```
142    |  _____^
143 LL | | /// "invalid
144 LL | | /// ```
145    | |_______^
146    |
147    = note: error from rustc: unterminated double quote string
148 help: mark blocks that do not contain Rust code as text
149    |
150 LL | /// ```text
151    |        ++++
152
153 warning: could not parse code block as Rust code
154   --> $DIR/invalid-syntax.rs:103:5
155    |
156 LL |   /// ```
157    |  _____^
158 LL | | /// fn wook_at_my_beautifuw_bwaces_plz() {);
159 LL | | /// ```
160    | |_______^
161    |
162    = note: error from rustc: mismatched closing delimiter: `)`
163 help: mark blocks that do not contain Rust code as text
164    |
165 LL | /// ```text
166    |        ++++
167
168 warning: 13 warnings emitted
169