-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't collect return-position impl traits for documentation
- Loading branch information
1 parent
7c96e40
commit 72ef85d
Showing
2 changed files
with
24 additions
and
1 deletion.
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
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,15 @@ | ||
// compile-flags: --document-private-items --crate-type=lib | ||
// edition: 2021 | ||
|
||
// Issue 109931 -- test against accidentally documenting the `impl Future` | ||
// that comes from an async fn desugaring. | ||
|
||
// Check that we don't document an unnamed opaque type | ||
// @!has async_fn_opaque_item/opaque..html | ||
|
||
// Checking there is only a "Functions" header and no "Opaque types". | ||
// @has async_fn_opaque_item/index.html | ||
// @count - '//*[@class="small-section-header"]' 1 | ||
// @has - '//*[@class="small-section-header"]' 'Functions' | ||
|
||
pub async fn test() {} |