diff options
Diffstat (limited to 'tests/ui/async-await/issues/issue-60518.rs')
| -rw-r--r-- | tests/ui/async-await/issues/issue-60518.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/async-await/issues/issue-60518.rs b/tests/ui/async-await/issues/issue-60518.rs new file mode 100644 index 00000000000..69bbdd0e83a --- /dev/null +++ b/tests/ui/async-await/issues/issue-60518.rs @@ -0,0 +1,10 @@ +// check-pass +// edition:2018 + +// This is a regression test to ensure that simple bindings (where replacement arguments aren't +// created during async fn lowering) that have their DefId used during HIR lowering (such as impl +// trait) are visited during def collection and thus have a DefId. + +async fn foo(ws: impl Iterator<Item = ()>) {} + +fn main() {} |
