]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-ui/invalid-syntax.stderr
Merge commit '7d53619064ab7045c383644cb445052d2a3d46db' into sync_cg_clif-2023-02-09
[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
81 warning: could not parse code block as Rust code
82   --> $DIR/invalid-syntax.rs:64:5
83    |
84 LL |   /// ```edition2018
85    |  _____^
86 LL | | /// \_
87 LL | | /// ```
88    | |_______^
89    |
90    = note: error from rustc: unknown start of token: \
91
92 warning: could not parse code block as Rust code
93   --> $DIR/invalid-syntax.rs:70:1
94    |
95 LL | / #[doc = "```"]
96 LL | | /// \_
97 LL | | #[doc = "```"]
98    | |______________^
99    |
100    = help: mark blocks that do not contain Rust code as text: ```text
101    = note: error from rustc: unknown start of token: \
102
103 warning: Rust code block is empty
104   --> $DIR/invalid-syntax.rs:76:5
105    |
106 LL |   /// ```rust
107    |  _____^
108 LL | | /// ```
109    | |_______^
110
111 warning: Rust code block is empty
112   --> $DIR/invalid-syntax.rs:81:5
113    |
114 LL |   /// ```
115    |  _____^
116 LL | | ///
117 LL | | ///
118 LL | | /// ```
119    | |_______^
120    |
121 help: mark blocks that do not contain Rust code as text
122    |
123 LL | /// ```text
124    |        ++++
125
126 warning: could not parse code block as Rust code
127   --> $DIR/invalid-syntax.rs:92:9
128    |
129 LL |   ///     \____/
130    |  _________^
131 LL | | ///
132    | |_
133    |
134    = note: error from rustc: unknown start of token: \
135
136 warning: could not parse code block as Rust code
137   --> $DIR/invalid-syntax.rs:97:5
138    |
139 LL |   /// ```
140    |  _____^
141 LL | | /// "invalid
142 LL | | /// ```
143    | |_______^
144    |
145    = note: error from rustc: unterminated double quote string
146 help: mark blocks that do not contain Rust code as text
147    |
148 LL | /// ```text
149    |        ++++
150
151 warning: could not parse code block as Rust code
152   --> $DIR/invalid-syntax.rs:103:5
153    |
154 LL |   /// ```
155    |  _____^
156 LL | | /// fn wook_at_my_beautifuw_bwaces_plz() {);
157 LL | | /// ```
158    | |_______^
159    |
160    = note: error from rustc: mismatched closing delimiter: `)`
161 help: mark blocks that do not contain Rust code as text
162    |
163 LL | /// ```text
164    |        ++++
165
166 warning: 13 warnings emitted
167