]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/issues/issue-60518.rs
Rollup merge of #107061 - compiler-errors:new-solver-new-candidates-3, r=lcnr
[rust.git] / tests / 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() {}