]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hygiene/issue-77523-def-site-async-await.rs
Rollup merge of #90202 - matthewjasper:xcrate-hygiene, r=petrochenkov
[rust.git] / src / test / ui / hygiene / issue-77523-def-site-async-await.rs
1 // build-pass
2 // aux-build:opaque-hygiene.rs
3 // aux-build:def-site-async-await.rs
4
5 // Regression test for issue #77523
6 // Tests that we don't ICE when an unusual combination
7 // of def-site hygiene and cross-crate monomorphization occurs.
8
9 extern crate def_site_async_await;
10
11 use std::future::Future;
12
13 fn mk_ctxt() -> std::task::Context<'static> {
14     panic!()
15 }
16
17 fn main() {
18     Box::pin(def_site_async_await::serve()).as_mut().poll(&mut mk_ctxt());
19 }