]> git.proxmox.com Git - rustc.git/blame - src/test/ui/async-await/issues/issue-60518.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / async-await / issues / issue-60518.rs
CommitLineData
60c5eb7d 1// check-pass
48663c56
XL
2// edition:2018
3
48663c56
XL
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
8async fn foo(ws: impl Iterator<Item = ()>) {}
9
10fn main() {}