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