2021-03-06 14:59:26 -06:00
|
|
|
error: doc alias attribute expects a string `#[doc(alias = "a")]` or a list of strings `#[doc(alias("a", "b"))]`
|
|
|
|
--> $DIR/check-doc-alias-attr.rs:7:7
|
2020-08-01 09:22:20 -05:00
|
|
|
|
|
|
|
|
LL | #[doc(alias)]
|
|
|
|
| ^^^^^
|
|
|
|
|
2021-03-06 14:59:26 -06:00
|
|
|
error: doc alias attribute expects a string `#[doc(alias = "a")]` or a list of strings `#[doc(alias("a", "b"))]`
|
|
|
|
--> $DIR/check-doc-alias-attr.rs:8:7
|
2020-08-01 09:22:20 -05:00
|
|
|
|
|
|
|
|
LL | #[doc(alias = 0)]
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
2021-03-26 03:23:51 -05:00
|
|
|
error: '"' character isn't allowed in `#[doc(alias = "...")]`
|
2020-11-28 10:53:20 -06:00
|
|
|
--> $DIR/check-doc-alias-attr.rs:9:15
|
2020-09-16 09:42:06 -05:00
|
|
|
|
|
|
|
|
LL | #[doc(alias = "\"")]
|
2020-11-28 10:53:20 -06:00
|
|
|
| ^^^^
|
2020-09-16 09:42:06 -05:00
|
|
|
|
|
|
|
error: '\n' character isn't allowed in `#[doc(alias = "...")]`
|
2020-11-28 10:53:20 -06:00
|
|
|
--> $DIR/check-doc-alias-attr.rs:10:15
|
2020-09-16 09:42:06 -05:00
|
|
|
|
|
|
|
|
LL | #[doc(alias = "\n")]
|
2020-11-28 10:53:20 -06:00
|
|
|
| ^^^^
|
2020-09-16 09:42:06 -05:00
|
|
|
|
|
|
|
error: '\n' character isn't allowed in `#[doc(alias = "...")]`
|
2020-11-28 10:53:20 -06:00
|
|
|
--> $DIR/check-doc-alias-attr.rs:11:15
|
2020-09-16 09:42:06 -05:00
|
|
|
|
|
|
|
|
LL | #[doc(alias = "
|
2020-11-28 10:53:20 -06:00
|
|
|
| _______________^
|
2020-09-16 09:42:06 -05:00
|
|
|
LL | | ")]
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
error: '\t' character isn't allowed in `#[doc(alias = "...")]`
|
2020-11-28 10:53:20 -06:00
|
|
|
--> $DIR/check-doc-alias-attr.rs:13:15
|
2020-09-16 09:42:06 -05:00
|
|
|
|
|
|
|
|
LL | #[doc(alias = "\t")]
|
2020-11-28 10:53:20 -06:00
|
|
|
| ^^^^
|
2020-09-16 09:42:06 -05:00
|
|
|
|
2020-10-06 07:29:42 -05:00
|
|
|
error: `#[doc(alias = "...")]` cannot start or end with ' '
|
2020-11-28 10:53:20 -06:00
|
|
|
--> $DIR/check-doc-alias-attr.rs:14:15
|
2020-10-06 07:29:42 -05:00
|
|
|
|
|
|
|
|
LL | #[doc(alias = " hello")]
|
2020-11-28 10:53:20 -06:00
|
|
|
| ^^^^^^^^
|
2020-10-06 07:29:42 -05:00
|
|
|
|
|
|
|
error: `#[doc(alias = "...")]` cannot start or end with ' '
|
2020-11-28 10:53:20 -06:00
|
|
|
--> $DIR/check-doc-alias-attr.rs:15:15
|
2020-10-06 07:29:42 -05:00
|
|
|
|
|
|
|
|
LL | #[doc(alias = "hello ")]
|
2020-11-28 10:53:20 -06:00
|
|
|
| ^^^^^^^^
|
2020-10-06 07:29:42 -05:00
|
|
|
|
2021-03-06 14:59:26 -06:00
|
|
|
error: `#[doc(alias = "...")]` attribute cannot have empty value
|
|
|
|
--> $DIR/check-doc-alias-attr.rs:16:15
|
|
|
|
|
|
|
|
|
LL | #[doc(alias = "")]
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: `#[doc(alias("a"))]` expects string literals
|
|
|
|
--> $DIR/check-doc-alias-attr.rs:19:13
|
|
|
|
|
|
|
|
|
LL | #[doc(alias(0))]
|
|
|
|
| ^
|
|
|
|
|
2021-03-26 03:23:51 -05:00
|
|
|
error: '"' character isn't allowed in `#[doc(alias("..."))]`
|
2021-03-06 14:59:26 -06:00
|
|
|
--> $DIR/check-doc-alias-attr.rs:20:13
|
|
|
|
|
|
|
|
|
LL | #[doc(alias("\""))]
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
error: '\n' character isn't allowed in `#[doc(alias("..."))]`
|
|
|
|
--> $DIR/check-doc-alias-attr.rs:21:13
|
|
|
|
|
|
|
|
|
LL | #[doc(alias("\n"))]
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
error: '\n' character isn't allowed in `#[doc(alias("..."))]`
|
|
|
|
--> $DIR/check-doc-alias-attr.rs:22:13
|
|
|
|
|
|
|
|
|
LL | #[doc(alias("
|
|
|
|
| _____________^
|
|
|
|
LL | | "))]
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
error: '\t' character isn't allowed in `#[doc(alias("..."))]`
|
|
|
|
--> $DIR/check-doc-alias-attr.rs:24:13
|
|
|
|
|
|
|
|
|
LL | #[doc(alias("\t"))]
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
error: `#[doc(alias("..."))]` cannot start or end with ' '
|
|
|
|
--> $DIR/check-doc-alias-attr.rs:25:13
|
|
|
|
|
|
|
|
|
LL | #[doc(alias(" hello"))]
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: `#[doc(alias("..."))]` cannot start or end with ' '
|
|
|
|
--> $DIR/check-doc-alias-attr.rs:26:13
|
|
|
|
|
|
|
|
|
LL | #[doc(alias("hello "))]
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: `#[doc(alias("..."))]` attribute cannot have empty value
|
|
|
|
--> $DIR/check-doc-alias-attr.rs:27:13
|
|
|
|
|
|
|
|
|
LL | #[doc(alias(""))]
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: aborting due to 17 previous errors
|
2020-08-01 09:22:20 -05:00
|
|
|
|