Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for doc_keyword feature extension
- Loading branch information
1 parent
f663093
commit af2040f
Showing
3 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#![feature(doc_keyword)] | ||
|
||
#[doc(keyword = "foo df")] //~ ERROR | ||
mod foo {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
error: `foo df` is not a valid identifier | ||
--> $DIR/invalid-keyword.rs:3:17 | ||
| | ||
LL | #[doc(keyword = "foo df")] | ||
| ^^^^^^^^ | ||
|
||
error: aborting due to previous error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters