summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/issues/issue-60518.rs
blob: 69bbdd0e83a5d0a1765b42680d636704c27e895a (plain)
1
2
3
4
5
6
7
8
9
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() {}