]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issues/issue-60518.rs
Rollup merge of #71627 - ldm0:autoderefarg, r=Dylan-DPC
[rust.git] / src / test / ui / async-await / issues / issue-60518.rs
1 // check-pass
2 // edition:2018
3
4 // This is a regression test to ensure that simple bindings (where replacement arguments aren't
5 // created during async fn lowering) that have their DefId used during HIR lowering (such as impl
6 // trait) are visited during def collection and thus have a DefId.
7
8 async fn foo(ws: impl Iterator<Item = ()>) {}
9
10 fn main() {}