]>
Commit | Line | Data |
---|---|---|
6a06907d XL |
1 | error: doc alias attribute expects a string `#[doc(alias = "a")]` or a list of strings `#[doc(alias("a", "b"))]` |
2 | --> $DIR/check-doc-alias-attr.rs:7:7 | |
f035d41b XL |
3 | | |
4 | LL | #[doc(alias)] | |
5 | | ^^^^^ | |
6 | ||
6a06907d XL |
7 | error: doc alias attribute expects a string `#[doc(alias = "a")]` or a list of strings `#[doc(alias("a", "b"))]` |
8 | --> $DIR/check-doc-alias-attr.rs:8:7 | |
f035d41b XL |
9 | | |
10 | LL | #[doc(alias = 0)] | |
11 | | ^^^^^^^^^ | |
12 | ||
cdc7bbd5 | 13 | error: '"' character isn't allowed in `#[doc(alias = "...")]` |
fc512014 | 14 | --> $DIR/check-doc-alias-attr.rs:9:15 |
1b1a35ee XL |
15 | | |
16 | LL | #[doc(alias = "\"")] | |
fc512014 | 17 | | ^^^^ |
1b1a35ee XL |
18 | |
19 | error: '\n' character isn't allowed in `#[doc(alias = "...")]` | |
fc512014 | 20 | --> $DIR/check-doc-alias-attr.rs:10:15 |
1b1a35ee XL |
21 | | |
22 | LL | #[doc(alias = "\n")] | |
fc512014 | 23 | | ^^^^ |
1b1a35ee XL |
24 | |
25 | error: '\n' character isn't allowed in `#[doc(alias = "...")]` | |
fc512014 | 26 | --> $DIR/check-doc-alias-attr.rs:11:15 |
1b1a35ee XL |
27 | | |
28 | LL | #[doc(alias = " | |
fc512014 | 29 | | _______________^ |
1b1a35ee XL |
30 | LL | | ")] |
31 | | |_^ | |
32 | ||
29967ef6 | 33 | error: '\t' character isn't allowed in `#[doc(alias = "...")]` |
fc512014 | 34 | --> $DIR/check-doc-alias-attr.rs:13:15 |
1b1a35ee | 35 | | |
29967ef6 | 36 | LL | #[doc(alias = "\t")] |
fc512014 | 37 | | ^^^^ |
1b1a35ee | 38 | |
29967ef6 | 39 | error: `#[doc(alias = "...")]` cannot start or end with ' ' |
fc512014 | 40 | --> $DIR/check-doc-alias-attr.rs:14:15 |
1b1a35ee | 41 | | |
29967ef6 | 42 | LL | #[doc(alias = " hello")] |
fc512014 | 43 | | ^^^^^^^^ |
29967ef6 XL |
44 | |
45 | error: `#[doc(alias = "...")]` cannot start or end with ' ' | |
fc512014 | 46 | --> $DIR/check-doc-alias-attr.rs:15:15 |
29967ef6 XL |
47 | | |
48 | LL | #[doc(alias = "hello ")] | |
fc512014 | 49 | | ^^^^^^^^ |
1b1a35ee | 50 | |
6a06907d XL |
51 | error: `#[doc(alias = "...")]` attribute cannot have empty value |
52 | --> $DIR/check-doc-alias-attr.rs:16:15 | |
53 | | | |
54 | LL | #[doc(alias = "")] | |
55 | | ^^ | |
56 | ||
57 | error: `#[doc(alias("a"))]` expects string literals | |
58 | --> $DIR/check-doc-alias-attr.rs:19:13 | |
59 | | | |
60 | LL | #[doc(alias(0))] | |
61 | | ^ | |
62 | ||
cdc7bbd5 | 63 | error: '"' character isn't allowed in `#[doc(alias("..."))]` |
6a06907d XL |
64 | --> $DIR/check-doc-alias-attr.rs:20:13 |
65 | | | |
66 | LL | #[doc(alias("\""))] | |
67 | | ^^^^ | |
68 | ||
69 | error: '\n' character isn't allowed in `#[doc(alias("..."))]` | |
70 | --> $DIR/check-doc-alias-attr.rs:21:13 | |
71 | | | |
72 | LL | #[doc(alias("\n"))] | |
73 | | ^^^^ | |
74 | ||
75 | error: '\n' character isn't allowed in `#[doc(alias("..."))]` | |
76 | --> $DIR/check-doc-alias-attr.rs:22:13 | |
77 | | | |
78 | LL | #[doc(alias(" | |
79 | | _____________^ | |
80 | LL | | "))] | |
81 | | |_^ | |
82 | ||
83 | error: '\t' character isn't allowed in `#[doc(alias("..."))]` | |
84 | --> $DIR/check-doc-alias-attr.rs:24:13 | |
85 | | | |
86 | LL | #[doc(alias("\t"))] | |
87 | | ^^^^ | |
88 | ||
89 | error: `#[doc(alias("..."))]` cannot start or end with ' ' | |
90 | --> $DIR/check-doc-alias-attr.rs:25:13 | |
91 | | | |
92 | LL | #[doc(alias(" hello"))] | |
93 | | ^^^^^^^^ | |
94 | ||
95 | error: `#[doc(alias("..."))]` cannot start or end with ' ' | |
96 | --> $DIR/check-doc-alias-attr.rs:26:13 | |
97 | | | |
98 | LL | #[doc(alias("hello "))] | |
99 | | ^^^^^^^^ | |
100 | ||
101 | error: `#[doc(alias("..."))]` attribute cannot have empty value | |
102 | --> $DIR/check-doc-alias-attr.rs:27:13 | |
103 | | | |
104 | LL | #[doc(alias(""))] | |
105 | | ^^ | |
106 | ||
107 | error: aborting due to 17 previous errors | |
f035d41b | 108 |