mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-21 12:07:31 +00:00
14 lines
439 B
Rust
14 lines
439 B
Rust
![]() |
//! This test used to ICE: rust-lang/rust#128695
|
||
|
//! Fixed when re-work async drop to shim drop glue coroutine scheme.
|
||
|
//@ edition: 2021
|
||
|
|
||
|
use core::pin::{pin, Pin};
|
||
|
|
||
|
fn main() {
|
||
|
let fut = pin!(async {
|
||
|
let async_drop_fut = pin!(core::future::async_drop(async {})); //~ ERROR: expected function, found module `core::future::async_drop`
|
||
|
//~^ ERROR: module `async_drop` is private
|
||
|
(async_drop_fut).await;
|
||
|
});
|
||
|
}
|