-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a test that reproduces the bug mentioned in rules_rust#1952.
- Loading branch information
1 parent
8aed695
commit 3e6bb71
Showing
2 changed files
with
31 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,9 @@ | ||
/// A different answer that only exists if using procmacros. | ||
/// ``` | ||
/// use rustdoc_proc_macro::make_answer; | ||
/// make_answer!(); | ||
/// assert_eq!(answer(), 42); | ||
/// ``` | ||
pub fn procmacro_answer() -> u32 { | ||
24 | ||
} |
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