File tree 6 files changed +52
-11
lines changed
6 files changed +52
-11
lines changed Original file line number Diff line number Diff line change 1
- error: doc alias attribute expects a string: #[doc(alias = "0 ")]
1
+ error: doc alias attribute expects a string: #[doc(alias = "a ")]
2
2
--> $DIR/check-doc-alias-attr.rs:6:7
3
3
|
4
4
LL | #[doc(alias)]
5
5
| ^^^^^
6
6
7
- error: doc alias attribute expects a string: #[doc(alias = "0 ")]
7
+ error: doc alias attribute expects a string: #[doc(alias = "a ")]
8
8
--> $DIR/check-doc-alias-attr.rs:7:7
9
9
|
10
10
LL | #[doc(alias = 0)]
11
11
| ^^^^^^^^^
12
12
13
- error: doc alias attribute expects a string: #[doc(alias = "0 ")]
13
+ error: doc alias attribute expects a string: #[doc(alias = "a ")]
14
14
--> $DIR/check-doc-alias-attr.rs:8:7
15
15
|
16
16
LL | #[doc(alias("bar"))]
Original file line number Diff line number Diff line change 1
- error: doc alias attribute expects a string: #[doc(alias = "0 ")]
1
+ error: doc alias attribute expects a string: #[doc(alias = "a ")]
2
2
--> $DIR/check-doc-alias-attr.rs:7:7
3
3
|
4
4
LL | #[doc(alias)]
5
5
| ^^^^^
6
6
7
- error: doc alias attribute expects a string: #[doc(alias = "0 ")]
7
+ error: doc alias attribute expects a string: #[doc(alias = "a ")]
8
8
--> $DIR/check-doc-alias-attr.rs:8:7
9
9
|
10
10
LL | #[doc(alias = 0)]
11
11
| ^^^^^^^^^
12
12
13
- error: doc alias attribute expects a string: #[doc(alias = "0 ")]
13
+ error: doc alias attribute expects a string: #[doc(alias = "a ")]
14
14
--> $DIR/check-doc-alias-attr.rs:9:7
15
15
|
16
16
LL | #[doc(alias("bar"))]
Original file line number Diff line number Diff line change 4
4
5
5
#![ crate_type = "lib" ]
6
6
7
- #![ doc( alias = "shouldn't work!" ) ] //~ ERROR
7
+ #![ doc( alias = "not working!" ) ] //~ ERROR
8
+
9
+ #[ doc( alias = "shouldn't work!" ) ] //~ ERROR
10
+ pub struct Foo ;
Original file line number Diff line number Diff line change 1
1
error: '\'' character isn't allowed in `#[doc(alias = "...")]`
2
- --> $DIR/doc-alias-crate-level.rs:7:16
2
+ --> $DIR/doc-alias-crate-level.rs:9:15
3
3
|
4
- LL | #! [doc(alias = "shouldn't work!")]
5
- | ^^^^^^^^^^^^^^^^^
4
+ LL | #[doc(alias = "shouldn't work!")]
5
+ | ^^^^^^^^^^^^^^^^^
6
6
7
- error: aborting due to previous error
7
+ error: `#![doc(alias = "...")]` isn't allowed as a crate level attribute
8
+ --> $DIR/doc-alias-crate-level.rs:7:8
9
+ |
10
+ LL | #![doc(alias = "not working!")]
11
+ | ^^^^^^^^^^^^^^^^^^^^^^
12
+
13
+ error: aborting due to 2 previous errors
8
14
Original file line number Diff line number Diff line change
1
+ #![ crate_type = "lib" ]
2
+ #![ feature( doc_keyword) ]
3
+
4
+ #![ doc( keyword = "hello" ) ] //~ ERROR
5
+
6
+ #[ doc( keyword = "hell" ) ] //~ ERROR
7
+ mod foo {
8
+ fn hell ( ) { }
9
+ }
10
+
11
+ #[ doc( keyword = "hall" ) ] //~ ERROR
12
+ fn foo ( ) { }
Original file line number Diff line number Diff line change
1
+ error: `#[doc(keyword = "...")]` can only be used on empty modules
2
+ --> $DIR/doc_keyword.rs:6:7
3
+ |
4
+ LL | #[doc(keyword = "hell")]
5
+ | ^^^^^^^^^^^^^^^^
6
+
7
+ error: `#[doc(keyword = "...")]` can only be used on modules
8
+ --> $DIR/doc_keyword.rs:11:7
9
+ |
10
+ LL | #[doc(keyword = "hall")]
11
+ | ^^^^^^^^^^^^^^^^
12
+
13
+ error: `#![doc(keyword = "...")]` isn't allowed as a crate level attribute
14
+ --> $DIR/doc_keyword.rs:4:8
15
+ |
16
+ LL | #![doc(keyword = "hello")]
17
+ | ^^^^^^^^^^^^^^^^^
18
+
19
+ error: aborting due to 3 previous errors
20
+
You can’t perform that action at this time.
0 commit comments