rust/src/test/rustdoc-ui/check-doc-alias-attr.stderr

59 lines
1.5 KiB
Plaintext
Raw Normal View History

error: doc alias attribute expects a string: #[doc(alias = "a")]
--> $DIR/check-doc-alias-attr.rs:6:7
|
LL | #[doc(alias)]
| ^^^^^
error: doc alias attribute expects a string: #[doc(alias = "a")]
--> $DIR/check-doc-alias-attr.rs:7:7
|
LL | #[doc(alias = 0)]
| ^^^^^^^^^
error: doc alias attribute expects a string: #[doc(alias = "a")]
--> $DIR/check-doc-alias-attr.rs:8:7
|
LL | #[doc(alias("bar"))]
| ^^^^^^^^^^^^
2020-09-16 09:42:06 -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
error: `#[doc(alias = "...")]` cannot start or end with ' '
2020-11-28 10:53:20 -06:00
--> $DIR/check-doc-alias-attr.rs:14:15
|
LL | #[doc(alias = " hello")]
2020-11-28 10:53:20 -06: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
|
LL | #[doc(alias = "hello ")]
2020-11-28 10:53:20 -06:00
| ^^^^^^^^
error: aborting due to 9 previous errors